Jump to content

Code to add ribbons on product blocks?

Recommended Posts

  • Replies 9
  • Views 414
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
On 10/17/2022 at 2:07 PM, Cyperpunk-girl-333 said:

how would i add this @tuanphan 🙂 it looks fantasic

Add to Design > Custom CSS

div.grid-item:before {
    content: "Test test";
    position: absolute;
    background-color: green;
    top: 0;
    right: -10px;
    padding: 5px 10px;
    z-index: 99999;
    transform: rotate(45deg);
}

 

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
On 10/19/2022 at 5:19 PM, Cyperpunk-girl-333 said:

It looks great! Is it possible to make the ribbon a little longer on either side and control the style of the font? 

would i just need to add

Font style: Audiowide? 

 

https://www.spacept.com.au/store

Just add some attributes to the code

div.grid-item:before {
    content: " BUY NOW ";
    position: absolute;
    background-color: #ef06c3;
    top: 0;
    right: -15px;
    padding: 10px 40px;
    z-index: 99999;
    transform: rotate(48deg);
    font-size: 12px;
    font-family: 'Audiowide';
}

 

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

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.