Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB 2.0.1 Unable to save more than 150 Global Styles #1768

Open
vburdyko opened this issue Feb 13, 2025 · 4 comments
Open

GB 2.0.1 Unable to save more than 150 Global Styles #1768

vburdyko opened this issue Feb 13, 2025 · 4 comments
Labels
triage Awaiting review

Comments

@vburdyko
Copy link

Description

On the client's website, I encountered a rather unusual issue: it's not possible to save more than 150 global styles. To investigate, I created a test site on Local, added 150 styles, and the problem persists—saving more than 150 styles doesn't work. Styles are listed in the Global Styles Panel but are not applied on the frontend and do not appear on the wp-admin/admin.php?page=generateblocks-styles page.

Steps to reproduce

https://vimeo.com/1056479418

GB 2.0.1
GB Pro 2.0

@vburdyko vburdyko added the triage Awaiting review label Feb 13, 2025
@tdrayson
Copy link

tdrayson commented Feb 13, 2025

It's less a bug, but a fake limit GB decided to set.

There is a filter you can use to change the limit. This is what I use in my starter site -

/**
 * Change Global Styles limit
 */
function tct_global_styles_limit()
{
    return 500;
}
add_filter('generateblocks_styles_posts_per_page', 'tct_global_styles_limit', 100);

Original article - https://snippetclub.com/how-to-increase-generateblocks-pro-global-styles-limit/ [My own article]

@vburdyko
Copy link
Author

It's less a bug, but a fake limit GB decided to set.

There is a filter you can use to change the limit. This is what I use in my starter site -

Hi Taylor,
Awesome, thanks for the info!

@iansvo
Copy link
Collaborator

iansvo commented Feb 13, 2025

@diggeddy I think we could look at doing this differently going forward. This was originally done to prevent a performance hazard, but we have a new way of querying data that supports paginated queries, so we could lazy load the whole list just 150 at a time, or something like that.

I don't anticipate this would be high LOE.

@christianvanthof
Copy link

I've set it in my child theme to like 9999 or so. Ran into issues quickly with 150 & even 500 😅😅😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Awaiting review
Projects
None yet
Development

No branches or pull requests

4 participants