I am using this css to remove underlines from buttons
/* remove underlines from button links*/
.entry-content a:not(.wp-block-button__link, a.gb-text):hover {
text-decoration: underline;
}
I have this php to set up colors for the default gb button
add_filter( ‘generateblocks_default_button_attributes’, function( $attributes ) {
$attributes[‘styles’] = [
‘display’ => ‘inline-flex’,
‘alignItems’ => ‘center’,
‘backgroundColor’ => ‘#00275b’,
‘color’ => ‘#ffffff’,
‘paddingTop’ => ‘1rem’,
‘paddingRight’ => ‘2rem’,
‘paddingBottom’ => ‘1rem’,
‘paddingLeft’ => ‘2rem’,
‘textDecoration’ => ‘none’,
‘&:is(:hover, :focus)’ => [
‘backgroundColor’ => ‘#076772’,
‘color’ => ‘#ffffff’,
],
];
return $attributes;
} );
Should be using colors as set in editor (and pulling from the php) but it is displaying the links colors set in the customizer for text in the body.
above – this is the wp default double button icon and it is correctly using the default styles set in customizer
this is a global style with additional colors set in editor, but it is using the links colors set in the customizer for text in the body