Archived topic
Sections not enabled
11 replies · Started by Rob on May 18, 2021
Hi,
I've got fresh site with WordPress 5.7.2 running GeneratePress Child theme, plus Disable Gutenburg plugin
I can't enable Sections on Pages or Posts (following the guide at https://docs.generatepress.com/article/sections-overview/)
Any suggestions?
Thanks
Hi there,
You can see Tom's reply regarding sections here: https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1754467
Let me know if you have any questions,
Thanks Stacey - whereabouts do I add the snippet Tom mentions?
add_filter( 'generate_premium_deprecated_modules', function( $modules ) {
unset( $modules['Sections'] );
return $modules;
} );
Hi Rob,
The snippet Tom shared is a PHP code.
Here's how to add PHP codes - https://docs.generatepress.com/article/adding-php/
You basically pick between using a child theme's functions.php or Code Snippets plugin to run your PHP snippets on your site. :D
Thanks Elvin - have created a snippet (via Code Snippets plugin), but still not seeing the enable toggle on Pages (I'm running GP 2.0.2, fresh WP install, with Disable Gutenburg enabled)
Hi there,
go to Appearance > GeneratePress - with that snippet in place, you should see the Sections module but it will need activating.
Thanks David - can't see that option in Generate Options (so assume Snippets isn't working?)
Is the Code Snippet set to Run Everywhere ?
Can you try this instead?
https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1756795
Thanks Leo, that works great!
No problem :)