Any update for image link on classik promo element?

Hi,
wonder if there is an update regarding the
“not possible to set a link on the image in/ at the classic promo element” ??

Hi there,

Add a specific class like promo-1, promo-2 and promo-3 to each promo elements, then add the following code to Cornerstone JS code :

jQuery(".promo-1").wrap("<a href='http://oceandriveshopping.com/index.php/category/jewelry-and-timepieces/'></a>");
jQuery(".promo-2").wrap("<a href='http://oceandriveshopping.com/index.php/category/seaside/'></a>")
jQuery(".promo-3").wrap("<a href='http://oceandriveshopping.com/index.php/category/salon-and-spa/'></a>");

And add this to Cornerstone CSS as well :

.x-promo-content a {
    color: black;
}
.promo-1:hover a,.promo-2:hover a ,.promo-3:hover a  {
    color: blue !important;
}

Hope it helps.

1 Like

Thank you So much!
That peaces of code in css and js - did the job!

Great reply!!! :sunglasses:

Glad we could help.

Cheers!

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