Jump to content

e2astudio

Circle Member
  • Posts

    751
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by e2astudio

  1. You can, but there's no easy way to hide it when it's placed using Fluid Engine. Instead, place the image in a Code Block wrapped in a `<div>` - something like this:

    <div class="payment-icons" style="text-align:center;">
      <img src="https://images.squarespace-cdn.com/content/v1/627082fb22c34f331451d6b6/edb21702-9537-470f-a4a5-e349ea0d099c/Payment+Processor+Icons+1.png">
    </div>

    Then, with that Custom CSS snippet above, you should be okay to go.

  2. 7 minutes ago, ShuiFeng said:

    I'm a bit stuck at the beginning though.

    I see. I misunderstood - I thought you already had that figured, just needed help to show only on cart.

    It will take some custom code to complete using .svg icons. You can't do it with a traditional image from a gallery.

  3. @paul2009 is correct. You could add your payment icons using a code block so you can add a class to the icons wrapper element. Then hide it everywhere except the cart with a custom CSS snippet like this:

    /* cart id not target */
    body:not(#cart) .payment-icons {
      display: none;
    }

     

  4. 59 minutes ago, Gibran said:

    You mean by injecting javascript code?

    No. Generally, there are two ways to customize page elements with CSS.

    1. The method @tuanphan is describing (inspect a Squarespace element and find the class already assigned by the system or template, then override or add styles to that specific class in Design -> Custom CSS)
    2. Add your own custom class with styles in Design -> Custom CSS and then add a Code Block containing the HTML with your custom class assigned.
  5. Looks like you have the wrong class on the quantity - it's -input not -select.

    
    
    <style>
     .sqs-add-to-cart-button-wrapper,
     .product-price,
     .product-quantity-input {
       display:none;
       visibility:hidden;
     }
    </style>
    
    

    Better yet, it's easier if you just hide the wrapper that holds the button and quantity like this:

    
    
    .product-add-to-cart,
    .product-price { visibility: none; display: none; }
    
    

  6. Always be sure to remove any code you add that does not work.

    To add this snippet of custom CSS to your site, just click the CSS button inside the Style Editor and paste the code below:

    
    
    .display-icons-in-post-footer .entry-date {
     display: none;
    }
    
    

    That should do the trick.

    To hide the date only in one specific blog, preface this code with the unique collection id class found on the BODY tag. In your case, this class is collection-51bbee6be4b0405092e5f752 – so the snippet would look like this:

    [code].collection-51bbee6be4b0405092e5f752.display-icons-in-post-footer .entry-date {  display: none;}
×
×
  • 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.