Hi,
How can I make this whole div link to a chosen url?
It’s a feature box, and div.
I know I can add a link inside this feature box, but I would like that whole box/div to link to a chosen url.
Thank you
Hi There,
It could be done by the custom javascript.
Could you please provide us with your website URL so we can take a closer look?
Thanks.
Hi There,
Please add an ID to your section, column or row and add the following JS to Cornerstone JS
ID: linked-1
jQuery("#linked-1").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>");
Hope it helps
Hi Joao,
I also used this solution and it works. But when I want to have a second link, say ID linked-2. How would I put it in the code? Like below, or is there a cleaner way?
jQuery("#linked-1").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>");
jQuery("#linked-2").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>");
Hi there,
You may do it like this:
jQuery("#linked-1, #linked-2").wrap("<a href='http://www.example.co.uk/get-in-touch/'></a>");
Hope this helps.