Site logo

Archived topic

GP equivalents to GB-buttons-presets

3 replies · Started by AM on February 16, 2023

Viewing posts 1–4 of 4

Hi,

I'm trying to apply the general GP-button settings to the GB-buttons, as per this post.

But I want to extend it a bit more to also the button-typography. But I can't get it to work.
What I'm looking for are the GeneratePress-equivalents to the following GenerateBlocks presets:

'fontFamily' => '',
'fontFamilyFallback' => '',
'googleFont' => false,
'googleFontVariants' => '',
'fontWeight' => '',
'fontSize' => false,
'fontSizeUnit' => 'px',
'textTransform' => '',
'letterSpacing' => '',

Greatly appreciated if you can point me in the right direction.

Hi there,

GP doesn't write CSS for border-radius etc. So there are no equivalent properties to match those to.

For the typography options, you can use the Customizer > Typography -> New Typography and select the Target Element of Custom in the list and the add .gb-button to the field provided, and you now have a rule specifically for GB buttons in the customizer.

Ah, of course. A custom target element is much easier. Thanks.

You're welcome

This archived topic is closed to new replies.