Jump to content

adding a sticky image (png) // SQS 7.1

Recommended Posts

Posted

Hi,

How do I add a sticky image (png) to the top-right corner, to be fixed while scrolling? something like a floating arrow back to top,  not as a button, but my own png symbol

Thanks!

  • Replies 1
  • Views 148
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

You can add an Image Block to Footer, then share site url, we can give code to achieve this

Or add this code into Settings > Advanced > Code Injection > Footer

<a href="#top"><img src="https://cdn.pixabay.com/photo/2023/05/15/08/52/flower-7994491_1280.jpg" class="img-test"/></a>
<style>
  .img-test {
  		width: 50px;
  }
  a[href="#top"] {
  	position: fixed;
    top: 50%;
    right: 0;
    z-index: 9999;
  }
</style>

 

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!)

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.