Jump to content

[Share] Label under Product Title

Recommended Posts

Suppose you want to add some labels: digital, design, copywriting under products belong 3 tags: digital, design, copywriting

#1. Create 3 tags: digital, design, copywriting and assign them for products.

image.thumb.png.e7011d98f853a1d163cabfbe10468dc9.png

image.thumb.png.c778d9911772bfe8afc60fb0e1d1ddff.png

image.thumb.png.f17d68ac847a446600e1c52834773fcf.png

#2. Use this code to Custom CSS box to add labels in Product/Shop Page

.tag-digital .grid-title:after {
    content: "digital";
    font-size: 12px;
    background-color: green;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    top: -10px;
}
.tag-design .grid-title:after {
    content: "design";
    font-size: 12px;
    background-color: #f1f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    top: -10px;
}
.tag-copywriting .grid-title:after {
    content: "copywriting";
    font-size: 12px;
    background-color: #ff0;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    top: -10px;
}

image.thumb.png.2271325322a04604175089a2c389beff.png

#3. Use this code to Custom CSS to add labels on Product Detail

.tag-digital h1.ProductItem-details-title:after {
    content: "digital";
    display: block;
    font-size: 16px;
    background-color: green;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    width: 100px;
    text-align: center;
    margin-top: 10px;
    line-height: 20px;
}
.tag-design h1.ProductItem-details-title:after {
    content: "design;
    display: block;
    font-size: 16px;
    background-color: #f1f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    width: 100px;
    text-align: center;
    margin-top: 10px;
    line-height: 20px;
}
.tag-copywriting h1.ProductItem-details-title:after {
    content: "copywriting";
    display: block;
    font-size: 16px;
    background-color: #f00;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
    width: 100px;
    text-align: center;
    margin-top: 10px;
    line-height: 20px;
}

image.png.f592e8d8ff7a40aa136971fe19de0d32.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Replies 0
  • Views 81
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.