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
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
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
Hi Ismael,
So there is nothing I could do to make it work?
Or there is another way to do this?
Thank you
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