Jump to content

sorca_marian

Circle Member
  • Posts

    621
  • Joined

  • Last visited

Posts posted by sorca_marian

  1. Hello!

    Add the below code in Settings -> Advanced -> Code Injection > FOOTER

     

    <script>
    window.addEventListener("scroll", function() {
      var siteTitle = document.querySelector("#site-title"); 
      if(window.pageYOffset >= 30) {
        siteTitle.className = "smaller-font";
      } else {
        siteTitle.className = "";
      }
    });
    </script>

    And the below code in Design -> Custom CSS 
     

    #site-title.smaller-font {
        font-size : 23px;
    }

     

    Screenshot 2021-06-22 at 21.23.05.png

  2. Hi,

    You can add the below code in the page header code injection of the page

    <style>
    .tweak-portfolio-grid-overlay-height-large .portfolio-grid-overlay {
        padding-top: 5vw;
        padding-bottom: 0;
        min-height: auto;
    }
    </style>  

     

    Screenshot 2021-06-22 at 21.01.57.png

  3. 1 hour ago, MichelleMcSweeney said:

    Hi @tuanphan,

    I have a similar query. We're no longer selling online, so we want to change my 'Add to Cart' button link to redirect users to another Page on the site. 

    I added to the Custom CSS to remove Add to Cart, and added a new button, the new button appeared way below to product information on the page and couldn't be moved.

    All products are hidden until we can display them without purchasing options - but here's a sample: https://www.homesavers.ie/new-page-1

    Michelle

    Hi Michelle,

    You can hide your current add to cart button and add a new button with the below codes.

     

    <style>
    .sqs-add-to-cart-button-wrapper {
        display : none!important;
    }
    
    .custom-button {
        border: 1px solid;
        padding: 10px 15px
    }
    </style>
    
    <script>
    $(document).ready(function() {
      $('<a class="custom-button" href="/page-url">Button name</a>').insertAfter($(".ProductItem-details-excerpt ul"))
    });    
    </script>

     

    Screenshot 2021-06-22 at 20.47.57.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.