Site logo

Archived topic

GenerateBlocks Button block default GP styling

22 replies · Started by Natalie on March 25, 2020

Viewing posts 16–23 of 23

Thanks David.

I'm happy using additional css for now, but will be nice if GB does eventually pickup styling set by GP button colors - seems logical that a sites buttons would use styling from one central place on customizer.

Many thanks.

M.

Yep - we're working on that.

Glad to hear you found a solution.

Hi David,

I just bought GeneratePress Premium yesterday and came across this problem while building a website for a client. Has this been solved already. Why can I set my button Typography and color styles in the theme just to have GenerateBlocks ignore them completely? Do I really have to buy GenerateBlocks Pro also just to set a global style for the site buttons?

Best regards,
Gordon.

Hi Gordon,

Typography manager should work. Try setting the target element to Custom, and this as the selector: .gb-button.gb-button-text

As for the colors, the customizer colors still doesn’t apply to GB Buttons. You can try this as mentioned by Tom: https://generatepress.com/forums/topic/add-custom-css-selector-to-the-button-selector/#post-1322768

You can try adding a class and targeting that class with custom CSS to alter the color globally. Otherwise, you would need GB Pro for Global styles.

Hi Fernando,

thanks for your quick reply, unfortunately I can’t find where I can set the target element to Custom ... if I put the selector in Additional CSS for the element it doesn’t change anything.

Hi Fernando,

thanks a lot for this, using Tom’s code snippet, I was able to achieve what I needed, as I also wanted to set a border-radius as default – perfect!

Best, Gordon.

You’re welcome Gordon!

This archived topic is closed to new replies.