How to put link on the background image

Hello Dear ,

I am wondering how can I put a link on the background image. So visitors can click over when they see the image and do the clicking.

Hi there,

This feature is not offered out of the box on Pro . You will have to write a custom Javascript to accomplish this.

Kindly provide the URL to your site so that we can suggest something.

Thank you.

Hello Dear Jade,

Thanks for your kind reply.

Our site home page is https://yhsay.com

Regards

Daphne

Hi Daphne,

To add link, you can add the code below in Cornerstone > JS

jQuery(function($) {
     $( "#x-section-8" ).wrap( "<a href='https://yhsay.com/'></a>" );
});

Change https://yhsay.com/ to where you want the image to link to.

Hope that helps.

1 Like

Hello Dear Paul,

Thanks for your reply! It has solved my problem. Now the link is ok!

Glad to hear that :slight_smile:

Feel free to ask if we could help with anything else.

Best regards.

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