Jump to content

Peter550

Member
  • Posts

    38
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Peter550 got a reaction from tracydickason in Accordian drop downs in additional information not working   
    hi @tuanphan
     
    I want these markdowns to be accordion drop-downs in the additional information section. I have added the code into the code injection (see screenshot and below) following this guide - https://stnsvn.com/blog/how-to-add-an-accordion-to-squarespace and use markdowns for the sections. But its not working. I cant click on the + signs and they do not hide the text below. They are visible like in the screenshot all the time. 
     
    Any idea how to resolve this? 
     
    /*Accordion Page Settings*/ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('.markdown-block .sqs-block-content h2').css('cursor','pointer'); $(".markdown-block .sqs-block-content h2").nextUntil("h2").slideToggle(); $(".markdown-block .sqs-block-content h2").click(function() {$(this).nextUntil("h2").slideToggle();}); }); $(document).ready(function(){ $('.markdown-block .sqs-block-content h2').click(function() {$(this).toggleClass('plus-minus');}); }); </script>  
     

  2. Like
    Peter550 got a reaction from tracydickason in Accordian drop downs in additional information not working   
    Legend! Thank you. 
     
    Can you help spread out the accordions so they cover the full width of the line below? 
     
     
  3. Like
    Peter550 got a reaction from tracydickason in Accordian drop downs in additional information not working   
    Also, if I were to change the accordions to a paragraph font, what would I change the code to? 
  4. Like
    Peter550 got a reaction from tracydickason in Accordian drop downs in additional information not working   
    I would like them to reach the end of the line below - ie. They span the full width
     
    I imagine its something to do with padding that I can channge with custom CSS? 
     
    @tuanphan

  5. Like
    Peter550 got a reaction from antny.smth in A search function to search all text on all pages (visible and not visible)   
    Site URL: https://aldricharchive.squarespace.com/
    hi everyone, and in particular @tuanphan and @Agha_Waqas (the legends of this forum) 
     
    I have a website which is an archive of text, files and images. I would like to be able to search EVERYTHING (all text on all visible and non visible pages) via a search box. I would like to type in a keyword and click search, then a page appear with the word highlighted/identified (if this is too much, just to bring up a page). I currently have button at the top right which I would like to be the search function (see screenshot) 
     
    Is there a way to do this through standard functionality, or does this require some code? 
     
    Thanks in advance
     
    Pete

  6. Like
    Peter550 got a reaction from Beyondspace in Accordions and symbols in product description rather than additional info   
    I am pulling my hair out trying to resolve this question that has been asked many times on the forum, but all the code and forum answers simply aunt working for me. 
    I have some accordions in thew additional information for this product. I have used the markdowns to do this + some code in the code injection header. I want these accordions to be moved to the product description. I would also like the icons to be moved to above the accordions, so I can fit everything in the product description.
    I have attached 2 screenshots 1. what it currently is 2. a mockup of what I want it to be
    Please help!!!! @tuanphan @Agha_Waqas 
     
    (I am aware there is a widget, but i don't know whether this will help get it in the product description. 


×
×
  • 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.