Home › Forums › Support › link function on featured images? This topic has 10 replies, 3 voices, and was last updated 4 years, 9 months ago by Leo. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts July 23, 2019 at 3:26 pm #965433 Daniele Hi, yours is a very nice theme, but it lacks the function that allows you to put a link to the images in evidence! or am I wrong, why can’t I find it? Thank you, Daniele July 23, 2019 at 5:22 pm #965490 TomLead Developer Lead Developer Hi there, I’m not too sure I understand – can you explain a bit more? Let me know π July 23, 2019 at 6:30 pm #965530 Daniele Hi Tom, in this wordpress discussion we talk about what I mean, but this is an integrated function in many themes.. https://wordpress.org/support/topic/how-to-add-hyperlink-to-posts-featured-image/ Thanks, Daniele July 24, 2019 at 7:16 am #965913 Daniele I’m talking about putting a link in the image shown above, at the top of each article π July 24, 2019 at 8:27 am #966097 LeoStaff Customer Support Is this what you are looking for? https://generatepress.com/forums/topic/add-custom-link-to-featured-image-on-post-page/#post-693006 July 24, 2019 at 10:51 am #966247 Daniele Hi Leo, EXACT! The code must be inserted in the function.php file, right? Thanks, Daniele July 24, 2019 at 11:42 am #966271 LeoStaff Customer Support If you are referring to the function.php file in the child theme then yes: https://docs.generatepress.com/article/adding-php/ July 24, 2019 at 2:43 pm #966349 Daniele It would be nice to be able to make these changes through the theme, without having to create a child, in the “elements” section π July 24, 2019 at 4:35 pm #966402 LeoStaff Customer Support You can use the Code Snippets plugin suggested in the article if you don’t want to use the child theme. I use Code Snippets most of the time for PHP. Filters cannot be used in Elements unfortunately. July 25, 2019 at 11:34 am #967276 Daniele Thanks Leo! The script works perfectly, and even the plugin is very convenient! Your assistance is always useful π Daniele July 25, 2019 at 11:35 am #967278 LeoStaff Customer Support Glad I could help π Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In