Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #434646

    Hi,

    I really like Enfold so far. But i tried to find information about how to make the blog grid featured image can link to a custom url instead of the original post. I tried the wp gallery custom link plugin, but it seem only work for gallery, not blog grid.

    Is there a way to make the featured image linked to a custom URL?

    I hope someone on Enfold team and other member can help me.

    Thank you

    #435032

    Hi tropsens!

    Thank you for using Enfold.

    I’m sorry but there is no default option to add a custom url on the featured image. You can set the post format to “Link” but it will redirect the whole post to a custom url, not just the featured image. If you use the portfolio items, you can overwrite the default link of the image with a custom one.

    Cheers!
    Ismael

    #435069
    This reply has been marked as private.
    #435826

    Hi!

    The plugin creates a custom field where you can add an external image url as featured image but it doesn’t have an option to add custom url. I don’t think it will work as you expected.

    Regards,
    Ismael

    #436559

    Hi Ismael,

    So there is nothing I could do to make it work?

    Or there is another way to do this?

    Thank you

    #437762

    Hi,

    Open /config-templatebuilder/avia-shortcodes/postslider.php and look for line 290:

    $link 		= get_permalink($the_id);
    

    Replace it by this:

    $link 		= get_permalink($the_id);
    $link_thumb = get_post_meta($the_id, "custom_thumbnail_url", true) ? get_post_meta($the_id, "custom_thumbnail_url", true) : get_permalink($the_id);
    

    Also change line 368 to:

    $output .= $thumbnail ? "<a href='{$link_thumb}' title=''>{$thumbnail}</a>" : "";
    

    Then in each Post (enable Custom Fields in Screen Options), add the custom URL as a custom_thumbnail_url custom field:

    Regards,
    Josue

    • This reply was modified 9 years, 6 months ago by Josue.
    #440841
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Custom URL for Featured Image on Blog Grid’ is closed to new replies.