Site logo

Archived topic

Possible to design a product "badge" like this?

7 replies · Started by William on February 1, 2021

Viewing posts 1–8 of 8

Hello -

First off thanks so much to generatepress for always being so amazing with support.

I'm using generate blocks to create Product Boxes to better highlight various products I discuss.

Is there a way to build a "badge" to call out specifics such as "Top Pick" etc. similar to this image?
https://imgur.com/a/nMm9iWI

Thank you.

Hi there,

select your Container Block and in advanced > additional CSS Class(es) add: relative-parent
Then inside you container block, add a headline block, set it to Inline, and add your padding and colors, and give that a CSS Class of gb-badge

Then add this CSS:

.relative-parent {
  position: relative;
}
.gb-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 1;
}

We're trying to keep our forums tidy - if you need any further assistance that is directly to GenerateBlocks - would you mind raising topics in the GB forum.

David thank you so much for the lightning fast response.

I have done what you stated here. I may be doing something incorrectly. https://imgur.com/a/a0zBMP0

This is what I'm seeing. https://imgur.com/a/J00aYqM

Also, moving forward I'll be sure to use the correct forum when raising a GB topic.

Thank you,

Can you share a link to the a page where i can see the badge?

This archived topic is closed to new replies.