-
Anonymous
Hello,
I’m trying to build out a local pattern with global styles that I can use over and over throughout my site and can update styling across the site through the global styles.
I did a test-run by updating a color in the global styles and it did not apply throughout the site. I opened up a page to check and confirm that it had the global style connected and I see a button for “clear local styles” When I click that, the change I made to the global styles applied to the page.
Is there any other way to have changes applied to all pages without having to clear the local styles for each block?
Thanks!
-
Hi there,
the Button block is the only block that comes with some default styles, hence it has to have its Local Styles cleared when applying a Global Style.
The simplest solution. Is to:
i) add the button
ii) apply the global style
iii) clear the local styles
iv) save the button as a patternNow instead of adding a Button block when you require it, add the Button Pattern.
Note, the new GB Patterns use the core pattern post type, so they can added using/
keyboard shortcut. -
Anonymous
Thank you!
-
You’re welcome
-
ipitops
I’ve been banging my head against this problem for the last 30 minutes – very happy to find a solution here!
In this old thread: https://generatepress.com/forums/topic/add-custom-css-selector-to-the-button-selector/#post-1322768
…there was some discussion about linking the default gb-button styling with GeneratePress to give some control over this, are we any closer?
-
Alvind
Hi there,
…there was some discussion about linking the default gb-button styling with GeneratePress to give some control over this, are we any closer?
Probably in the next release, no ETA yet.
- You must be logged in to reply to this topic.