I tried using the search here on the forum, but didn’t come up with the answer I was looking for.
My site is 90% posts, is there anyway to make the Featured Image at the top of posts a custom link?
Lets say I wanted to use PrettyLink to create a custom link to a sales page from the top featured image. But leave it so that when they see the image at the bottom of another post or on homepage it takes them to the post. But ONLY on the post itself would the custom link be clickable.
How would I go about doing that?
Thanks
-
This topic was modified 11 years by
Mark.
Hi,
You can add a custom link for featured image for example – http://screencast.com/t/mioCXhzrO – http://screencast.com/t/uFpmnsavPg0k and disable lightbox for featured image – http://screencast.com/t/3O8pDTceh1y
Thanks!
I know it has been some time since this was asked. But can this be done in the new version? it seems the way you would have me do it is to change it so that all images would go to a certain link.
What I am looking for is to have each post have an option to make the featured image go to a specific page. So if Article 1 was about Widgetxyz and I wanted that particular post to make the featured image clickable to an affiliate page of widgetxyz.
Is that possible?
Hi,
Sorry but there is no update on this. There is no option to add a custom link to the featured image in the theme settings. Maybe you can find a plugin that has such a feature. (coding it in will not be so easy)
I will add this suggestion to our update list and pass this information on to the development team and if the feature will be requested by more people, maybe we will be able to implement it. We do try to implement more features with every major update, but this depends on the development team as they decide what gets implemented and what doesn’t.
Thank you for your understanding!
Simplest way is to make clone of the template you are using; find the section which inserts the featured image, then use advanced custom fields (ACF) to make a custom field for posts, with the target URL.
Then do an if/then/else
if ACF field
> <a href="urlfromfield">[featured image code]</a>
elseif
[featured image code]
endif
It’s such an uncommon request it’s doubtful they will add it to the codebase.
-
This reply was modified 9 years by
simchris.