Site logo

Archived topic

Sections not enabled

11 replies · Started by Rob on May 18, 2021

Viewing posts 1–12 of 12

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)

Screenshot

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 ?

Thanks Leo, that works great!

No problem :)

This archived topic is closed to new replies.