spongebob-smc
-
Posts
38 -
Joined
-
Last visited
Reputation Activity
-
spongebob-smc got a reaction from Inscape in Gallery Grid with Overlay Captions on Hover - link not working?
Found a fix:
.gallery-caption{ pointer-events: none; }
-
spongebob-smc reacted to tuanphan in How to add a code block class to all product pages
Add this code to Last Line in Code Injection Footer
<script> $(document).ready(function() { $('div#page-section-5f4fa1503fcde16f12ffcd23>.row:first-child .span-12').insertAfter('.ProductItem .ProductItem-additional'); }); </script> and add this to Code Injection Header
<style> body:not(.collection-type-products.view-item) div#page-section-5f4fa1503fcde16f12ffcd23>.row:first-child .span-12 { display: none; } </style>
-
spongebob-smc got a reaction from Beyondspace in How to add a code block class to all product pages
Site URL: https://mouse-trout-epjy.squarespace.com/shop-all/p/thomas-wilson-cello-sonata-download
OK, this is the problem I have:
I have 300+ products on this site and I would like to add an accordion dropdown showing delivery info to all product pages. I have this code already working on other pages using JS and a markdown block:
<script> $(document).ready(function(){ $('.markdown-block .sqs-block-content h3').css('cursor','pointer'); $(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle(); $(".markdown-block .sqs-block-content h3").click(function() {$(this).nextUntil("h3").slideToggle();}); }); </script>
I know that I can do this via the additional info section on products but obviously would need to do that 300+ times which is a pain. So I'm trying to figure out if there's a way I can add a markdown/code block class to all product pages so that every product page will automatically have it. It also means that my client will not have to add the code block when they add products.
Any ideas? Thanks in advance 🙂
site pw: spong123
-
spongebob-smc got a reaction from tuanphan in How to target elements in header on search page?
@WillMyers that worked! thank you so much you are amazing 😊
-
spongebob-smc reacted to justsayin in Does Version 7.1 support a Search Bar/Icon for the site's header?
Why does Squarespace get so many things right and SO many things wrong? Who's driving this ship?? Seriously NO search? WTF???
-
spongebob-smc reacted to justsayin in Does Version 7.1 support a Search Bar/Icon for the site's header?
I also love how they let us fend for ourselves in these rabbit hole chat rooms and no real team response ever takes place.