Archived topic
Need help with button colors
7 replies · Started by Dave on August 2, 2021
Hi folks, I've hunted in the documentation and forums, but I can't figure out these button colors! I have them set as I want in the customizer, but the buttons on pages are not using those colors. When I create new buttons, using the GP buttons block, I get a blue background and white text.
What am I missing here?
Hi there,
Can you make sure you are using the Colors options in GB's buttons block?
https://docs.generateblocks.com/article/buttons-overview/#colors
Let me know :)
Hi Leo, thanks for replying. I am using the GeneratePress button block. After I set the colors in the customizer panel (Colors > Buttons), the buttons do not use those colors. They use blue and black for the background and white for the text. I can change them in the color options panel in the GP button block. I thought that setting the option in the customizer would set the default across the site. Was I wrong?
Hi Dave,
The customizer option works for the buttons generated by WP.
All the other buttons generated by other plugins (including GB) have their own CSS classes, so the plugins control the style of their own buttons.
Hope I made that clear :)
Aha... thanks! So there is no way to set a default set of colors for the GeneratePress button block, correct?
You will need to use this filter:
https://generatepress.com/forums/topic/generateblocks-default-padding-issues/#post-1256951
With the items here:
https://github.com/tomusborne/generateblocks/blob/9a5ea197e22a9dc47a099fab4b6fc5bdcc4aca6d/includes/defaults.php#L172
Or the global style in GB pro:
https://docs.generateblocks.com/article/global-styles/
If you need further help with this, please open a support topic in GB's forum so the answer can be useful for other users as well:
https://wordpress.org/support/plugin/generateblocks/
Global styles! Perfect. Thanks!
No problem :)