Link on whole classic featured box

Hey there,

I tried to apply the instruction from here https://theme.co/apex/forum/t/adding-classic-feature-box-links/18747 and https://theme.co/apex/forum/t/link-feature-box-without-displaying-textlink-copy/8228/2 and somehow I don’t get it to work on this page https://360impact.ch/#home.

Thannks for your support.

Hi There,

Please try adding this custom JS under X > Theme Options > JS:

jQuery(function($){
	$(document).ready(function(){
		$(".x-feature-box").each(function(index, el) {
			var link = $(this).find(".x-feature-box-text a").attr('href');
			if(link){
				$(this).wrap('<a href="'+link+'"></a>');
			}
		});
	});
});

Hope it helps :slight_smile:

1 Like

Works like a charm. Had added it on the page ;-(

Have a good day and thanks !

1 Like

You’re most welcome.

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