kbacon Posted April 24, 2021 Share Posted April 24, 2021 Site URL: https://circle-wrasse-4735.squarespace.com/freesession I haven't gone live yet, but I've added CSS to my site several times from several different code sources. It always looks ok, but the accordion never works (toggles). I know that you need updated javascript for it to work, but it doesn't even work looking on my phone. Is this not worth the effort if there's a chance people viewing the site won't see the accordion, thus it looks really bad for half the viewers? My client wanted the information for each membership to be on a separate page, but that seems excessive, so really wanting this to work consistently. Currently used this article to help https://fallonmade.com/blog/accordion-dropdown-squarespace-css but other's I've used have had the same problem of not toggling. Password for site is: Bacon Link to comment
Solution Agha_Waqas Posted April 24, 2021 Solution Share Posted April 24, 2021 3 hours ago, kbacon said: Site URL: https://circle-wrasse-4735.squarespace.com/freesession I haven't gone live yet, but I've added CSS to my site several times from several different code sources. It always looks ok, but the accordion never works (toggles). I know that you need updated javascript for it to work, but it doesn't even work looking on my phone. Is this not worth the effort if there's a chance people viewing the site won't see the accordion, thus it looks really bad for half the viewers? My client wanted the information for each membership to be on a separate page, but that seems excessive, so really wanting this to work consistently. Currently used this article to help https://fallonmade.com/blog/accordion-dropdown-squarespace-css but other's I've used have had the same problem of not toggling. Password for site is: Bacon Hi, It seem like you did copy paste code and did not update it according to your heading size. go to you JavaScript and CSS code which you get from that article replace h2 to h4 on both codes (Javascript and CSS) <----- Updated code -----> <script> $(document).ready(function(){ $('.markdown-block .sqs-block-content h4').css('cursor','pointer'); $(".markdown-block .sqs-block-content h4").nextUntil("h4").slideToggle(); $(".markdown-block .sqs-block-content h4").click(function() {$(this).nextUntil("h2").slideToggle();}); }); </script> Same thing do with CSS replace all h2 to h4. tuanphan 1 Link to comment
kbacon Posted April 25, 2021 Author Share Posted April 25, 2021 oh my goodness, thanks so much, it's working now! It'll be great to be able to do this with future websites as well 😀 Link to comment
tuanphan Posted April 26, 2021 Share Posted April 26, 2021 Not related, you can use this accordion tab plugin to add accordion or tabs. Easy to do/customize. Furthermore, you can easily add any block (Text Block, Image Block, Summary Block, Gallery Block...) to Accordion Content. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
tuanphan Posted April 27, 2021 Share Posted April 27, 2021 I just found some problems on your site. Do you want to fix these? Site URL – https://circle-wrasse-4735.squarespace.com/ 1. (Mobile-Homepage) Change order to title-image-title-image? 2. (Mobile-Footer) Align center footer links? 3. (Mobile-Homepage) Make text inside yellow 4. (Tablet-Footer) Make footer better? 5. (Tablet-Homepage) Align center text-image? 6. (Tablet-Homepage) Text overflow border 7. (Tablet-About tat) 8. (Mobile-About tat) Move image under text? 9. (Tablet-Store) change to 2 products/row? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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