Adding links to feature boxes

Hello,

I have search and looked at all the replies to this problem and tried https://theme.co/apex/forum/t/code-snippet-add-a-link-to-feature-boxes/273

But it doesn’t work. Everyone says they fiddled and got it to work… but what did they do? Any ideas?

I have added the url to the js.

This is my page here and its the five circled elements - only added it to one to make it work so far.

Thanks in advance

I have deleted the user above, apologies - new details now in secure note

I have removed the ID as it was breaking the link on the text - just an FYI

Hi There,

Please follow these steps:

  • Add link1, link2, link3, link4, link5 classes to your feature boxes:

  • After that add this custom JS under Theme Options > JS:
jQuery(document).ready(function($) {
	$(".link1").find('img').wrap('<a href="http://hudsonmarshall.co.uk/link1" />');
	$(".link2").find('img').wrap('<a href="http://hudsonmarshall.co.uk/link2" />');
	$(".link3").find('img').wrap('<a href="http://hudsonmarshall.co.uk/link3" />');
	$(".link4").find('img').wrap('<a href="http://hudsonmarshall.co.uk/link4" />')
	$(".link5").find('img').wrap('<a href="http://hudsonmarshall.co.uk/link5" />');
});

Hope that helps and thank you for understanding.

Yay!!!

That works - thanks so much for your help!

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.