Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Global Styles Not Applying to Whole Site Without Clearing Local Styles

  • 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 pattern

    Now 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.

  • Thank you!

  • You’re welcome

  • 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?

  • 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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.