Jump to content

[Share] Add a clickable image over Slideshow

Recommended Posts

To add a clickable image/logo over slideshow, you can do these.

#1. First, find ID of Slideshow. You can use below tool.

In my example, it is: 

section[data-section-id="668ce9ead5f66752bfbf53cb"]

#2. Next, use this code to Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
  $('<a href="https://amazon.com" target="_blank" class="custom-img"><img src="https://static1.squarespace.com/static/665a652de576867a26021080/t/66694e042671fd57abfd39bd/1718177284242/sheila+02.png"/>').appendTo('section[data-section-id="668ce9ead5f66752bfbf53cb"] .gallery-fullscreen-slideshow-list');
  });
</script>
<style>
div.gallery-fullscreen-slideshow-list .custom-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    z-index: 999999;
    text-align: center;
}
div.gallery-fullscreen-slideshow-list .custom-img img {
    width: 150px;
}
</style>

image.png.74d5c14ef19c89d6394666ae522a11ad.png

#3. You can replace image url/image link here

image.thumb.png.a91b82e6038b95de19defb68e3b6577b.png

#4. To prevent image open in new tab, you can change

target="_blank"

to

target="_self"

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 177
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.