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