How to Increase GenerateBlocks Pro Global Styles Limit

tdrayson

If you’re using GenerateBlocks Pro and have noticed your Global Styles mysteriously disappearing or not displaying correctly, you’re not alone. This common issue occurs due to GenerateBlocks’ built-in limit of 150 styles. For websites with extensive styling needs, this limitation can become a significant roadblock.

PHP

        /**
 * Increase GenerateBlocks Pro Global Styles limit
 * 
 * @return int The new maximum number of global styles
 */
function tct_global_styles_limit() {
    return 500;
}
add_filter('generateblocks_styles_posts_per_page', 'tct_global_styles_limit', 100);
      
Copy

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

Newsletter

🔒I won't send you spam, I promise