Linking the Image in a Classic Feature Box

The solution here https://theme.co/apex/forum/t/adding-links-to-classic-feature-box-image/28565 creates 2 additional problems:

  1. It deletes text links in the feature box
  2. It shrinks the rounded image (which was the reason for choosing the classic feature box).

Is there another method for making the photo clickable (even if that means making the entire element a link)?

1 Like

Hi @tamdstudio,

Thanks for reaching out.

It’s removed since you can’t have a link within a link, it will cause layout issue. Instead of adding link, you can simply call it through jQuery. Example,

jQuery ( document ).on('click', '#linked-feature-box-ub', function() {

window.location = jQuery(this).find('a').attr('href');

} );

Then to make it appear clickable, add this CSS to your global custom CSS.

#linked-feature-box-ub {
cursor: pointer;
    cursor: hand;
}

Thanks!

Success! Thanks.

You’re most welcome!

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