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

Create Link on blog Carousel Element

blog carousel
    • 4 years, 9 months ago secc
      Participant

      Expired

      Hi. i have a blog carousel element on my page, but currently there is just on the blog title a link to the singlepost. How i can create also a link on the iamage? Thank you for your help.

    • 4 years, 9 months ago Eldo
      Keymaster

      Hello,

      We will be happy to assist you.
      Please before you have to renew your support license that was expired.

      Regards!

    • 4 years, 8 months ago secc
      Participant

      Expired

      Hi Eldo. Ive done it. Would be great, if you can help me with the code. thank you.

    • 4 years, 8 months ago Akram
      Keymaster

      Hi,

      You can do that by editing code files and it will be better to use child theme and making changes accordingly to keep changes even after main theme update.

      Thank You

    • 4 years, 8 months ago secc
      Participant

      Expired

      Hi. i have a child theme. But what i have to adjust that it works? Best regards.

    • 4 years, 8 months ago Akram
      Keymaster

      Hi,

      Overriding desired template file and setting your own things as per your own need.

      Here is the template file path for you by the way:
      /wp-content/themes/specular/vc_templates/latest_blog.php

      Thank You

    • 4 years, 8 months ago secc
      Participant

      Expired

      hi. I know the file but i have no idea, how i can set the link also to the images… Would be great, if you can help me. Best regards.

    • 4 years, 8 months ago Akram
      Keymaster

      Hi,

      Well, I have gone further to assist you and here is the code for you, Just find this code in your above mentioned file:

      $output .= '<img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2', 'url')).'" alt="'.esc_attr__('Featured Image','specular').'">';

      Then just replace above code with the following one:

      $output .= '<a href="'.esc_url(get_permalink()).'"><img src="'.esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2', 'url')).'" alt="'.esc_attr__('Featured Image','specular').'"></a>';

      That’s it.

      Note: You will find above code at 2 places in that file so replace both with mine provided code.

      If that works fine for you don’t forget to rate us with 5 star on themeforest :)

      Thank You

    • 4 years, 8 months ago secc
      Participant

      Expired

      Hi Akram
      This works perfect. Thank you for your help!!
      Best regards.
      Manuel

    • 4 years, 8 months ago Akram
      Keymaster

      Hi,

      If you like our theme and support then kindly rate us with 5 star on themeforest as well :)

      Thanks again

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