Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Latest blog post thumbnail link

latest blog postlinksthumbs
    • 10 years, 2 months ago jan_javornik
      Participant

      Expired

      Hello guys. I’ve gave up loooking how to set up post link in my Latest blog widget. I guess I have to modify file latest_blog.php in diretory vc_templates, but i don’t know how.

      My website is http://www.hudalukna.si and the widget which i want to modify is right under codeless slider.

      Can you please help me with that please?

       

       

    • 10 years, 2 months ago Mirela
      Participant

      Hello,

      Can you please be more clear? What do you need to change to it?

      Best regards!

    • 10 years, 2 months ago jan_javornik
      Participant

      Expired

      Hello.

      First please visit http://www.hudalukna.si.

      Under the slider I have section with Latest blog post. The latest blog post includes image (thumbnail), heading & description.

      So I want to put link to full post on these thumbnails.

    • 10 years, 2 months ago Mirela
      Participant

      Hello,

      Please go to file vc_templates/latest_blog.php and find this line:
      $output .= '<img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2', 'url')).'" alt="">';
      Replace it with this:
      $output .= '<a href="'.esc_attr(get_permalink()).'"><img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2', 'url')).'" alt=""></a>';
      Save file and refresh.

      Best regards!

    • 10 years, 2 months ago jan_javornik
      Participant

      Expired

      It’s working! That was very helpful. Thank you very much.

    • 10 years, 2 months ago jan_javornik
      Participant

      Expired

      I suggest you put this option into visual composer settings of Latest blog settings, i guess that would be very handy for some users.

       

    • 10 years, 2 months ago Mirela
      Participant

      Hello,

      Thank you for the suggestion. I will refer it to the developer team.

      Best regards!

    • 9 years, 6 months ago wpnoob
      Participant

      Expired

      And how’s the same done to the recent news component?

    • 9 years, 6 months ago Mirela
      Participant

      Hello,


      @wpnoob
      ,
      Please go to file vc_templates\recent_news.php and find this line:
      $output .= '<dt><img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'blog_grid', 'url')).'" alt=""></dt>';

      Replace with this:
      $output .= '<dt><a href="'.esc_url(get_permalink()).'"><img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'blog_grid', 'url')).'" alt=""></a></dt>';

      Best regards!

    • 9 years, 6 months ago wpnoob
      Participant

      Expired

      Thanks, it works!

Viewing 9 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password