-
Posts
14 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by dwinnbrown
-
-
-
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>
-
Just spent a couple hours removing custom code chunk by chunk to try and work out what was causing this until I eventually removed everything and saw the bug still happening.... Hoping for a fix soon!
-
In case anyone is looking for the solution to this, I was able to fix the 'one day off' issue by changing the variable from (removing the split on the 'T') :
d = new Date(document.querySelector('[itemprop="datePublished"]').getAttribute("content").split("T")[0]);
to:
d = new Date(document.querySelector('[itemprop="datePublished"]').getAttribute("content"));
-
@Beyondspace Did you ever manage to work out a solution to the date offset issue? I've got a site here: https://www.isscr.org/isscr-news/the-power-of-partnership which seems to be 1 day off on some posts - apart from that everything's working perfectly!
Date Picker S.O.S
in Commerce
Posted
I have put together a solution for those using the form block...
Full walkthrough here: https://www.winn-brown.co.uk/blog/how-to-add-a-datepicker-to-squarespace-form-block-2023
Note: this doesn't yet support the add to cart popup forms but I will be updating it soon with support for that.
Hope it helps!