Jump to content

Peter550

Member
  • Posts

    38
  • Joined

  • Last visited

Posts posted by Peter550

  1. 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

    Screen Shot 2021-05-25 at 01.51.18 (2).png

  2. 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. 

    Screen Shot 2021-05-20 at 16.04.42.png

    SS_mockup-01.jpg

  3. Currently, I have added these icons as a gallery in the additional information in the product. 

    They are very frustrating as they are tricky to resize or move around. I want them to be small and the same size regardless of how kbig the screen is. Currently, I am doing this by having a big spacer and setting the number of images on a row to above the number of icons. This does not work well. 

    Ideally, I want to try 3 different options: 

    1. All small on the left hand side

    2. All small and in the middle of the above text

    3. below the 'add to cart' button

    Please can someone help with some code to test these options?! @tuanphan @Agha_Waqas

    Screen Shot 2021-05-19 at 23.13.46.png

    Screen Shot 2021-05-19 at 23.28.12.png

  4. 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>

     

     

    Screen Shot 2021-05-19 at 22.09.59.png

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