Molololol Posted October 30 Share Posted October 30 Hi there, I would like our announcement bar have two announcements with separate links, either as flashing alternations or as carousel slides that users can click through? Any help would be much appreciated! Thanks Link to comment
dwinnbrown Posted October 30 Share Posted October 30 Hey @Molololol Try pasting this into the code injection area: Let me know how that goes! <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/> <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script> <script> $(window).on("load", function() { $(".sqs-announcement-bar-text-inner").slick({ autoplay: true, arrows: false, autoplaySpeed: 3000 }); }); </script> <style> .sqs-announcement-bar-text-inner:not(.slick-initialized) p { font-size: 0; } </style> Official Squarespace Expert | Founder @ Winn-Brown & Co. 👉 Get in Touch 📍 London, UK Link to comment
Molololol Posted October 30 Author Share Posted October 30 Hey thank you! When I pasted that into the header code injection bit it made the text disappear and the announcement bar thinner, should I add anything in there to make it not do that? Link to comment
dwinnbrown Posted October 30 Share Posted October 30 Can you share the link? If you go to the announcement bar settings you should also have each piece of text you want to display on it's own line by hitting 'return' on the keyboard Official Squarespace Expert | Founder @ Winn-Brown & Co. 👉 Get in Touch 📍 London, UK Link to comment
Molololol Posted October 30 Author Share Posted October 30 The link to the site? It's https://www.elisefriedman.co.uk/ Okay I'll do that too thanks! Link to comment
Molololol Posted October 30 Author Share Posted October 30 I can't see a change, I can see the text now when I increase the font size Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment