Jump to content

Can someone fix my code so the subtitle "Sale" words are not off center?

Go to solution Solved by Lesum,

Recommended Posts

Posted

Site URL: https://www.designbygeorge.co.nz/2025-nz-holden-nationals-merchandise

Can someone fix my code so that the subtitle under the product titles are not off center? The code has been added to replace the word "sale" under the products.
 

Here is the webpage: https://www.designbygeorge.co.nz/2025-nz-holden-nationals-merchandise

Here is the code: 

.grid-item:nth-child(5) .product-mark {visibility:hidden}
.grid-item:nth-child(5) .product-mark:after{visibility:visible!important;
content:"PRE EVENT PRICING";}

.grid-item:nth-child(6) .product-mark {visibility:hidden}
.grid-item:nth-child(6) .product-mark:after{visibility:visible!important;
content:"PRE ORDER ONLY";}

  • Solution
Posted

@NishInwood Hi! You can add this code under Website > Pages > Website Tools > Custom CSS

.products.collection-content-wrapper .grid-meta-status {
    font-size: 0 !important;
    padding-top: 5px;
}

.products.collection-content-wrapper .grid-meta-status .product-mark.sale::after {
    font-size: 1.1rem !important;
    line-height: 1em;
    
}

@media screen and (max-width: 767px) {
    .products.collection-content-wrapper .grid-meta-status .product-mark.sale::after {
        font-size: 1rem !important;
    }
}

 

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Create an account or sign in to comment

You need to be a member in order to leave a comment

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