Featured Box Behavior

Hello… Is there a way to change the behavior of the featured boxes so that you can simply click anywhere in the box to link to the appropriate page? I tried following these instructions but it didn’t work for me. With this kind of coding stuff I’m a novice at best. Leto: Featured boxes with click

Any suggestions would be great.

Take Care

Hello,

Your website is in the Maintenance Mode, can you please leave here a note when it’s live?

Kind Regards, Roman.
aThemes Support

Staging version here is live.

http://tenniszoneplus.staging.wpengine.com/

All the Best,
Brian

Okay Brian, thank you for the link.

I don’t see the code from your first screenshot currently applied on your staging website, have you removed it?

Kind Regards, Roman.
aThemes Support

Apologies yes I removed it but I just added it back in. Sorry about that.

Hello Brian,

Try to use this code instead:

jQuery(document).ready(function(){
    jQuery('.leto_featured_boxes_widget .category-item__link a').each(function(){
        let link = jQuery(this).attr('href')
        let item = jQuery(this).parents('.category-item__inner')
        item.wrap('<a href=' + link + '></a>');
    });
});

Kind Regards, Roman.
aThemes Support

That did it. Thank you so much!

1 Like

You are welcome! :slight_smile:

Please feel free to ask any other questions that you might have in future.

Kind Regards, Roman.
aThemes Support