Jump to content

[Share] Move Scrolling Block to Announcement Bar

Recommended Posts

You can follow these steps. If you can't make it work, you can comment below or message me.

#1. Edit Site Footer

image.png.6e07ed636c269e6fcbe522cb44aaf75c.png

#2. Add a Scrolling Block

image.png.18a7a978190678aa8f156e85e01379a9.png

#3. Use this code to Website > 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(){
  setTimeout( function() {
          $('footer.sections .marquee-block').appendTo('#announcement-bar-text-inner-id');
    }, 2000);
});
</script>
<style>
div#announcement-bar-text-inner-id * {
    color: white !important;
}
#announcement-bar-text-inner-id p {
    display: none !important;
}
span.sqs-announcement-bar-close {
    display: none;
}
</style>

image.png.7183e1bb8c11bb619884f16e24d328bf.png

#4. Result

image.png.f5ffba0dddecfa7ff83bd9c12869d789.png

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 272
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.