[Resolved] Sections have disappeared

Home Forums Support [Resolved] Sections have disappeared

Home Forums Support Sections have disappeared

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1771784
    Chris

    I am building a site with pages that use Sections. I disabled the premium modules and then re-enabled them… and the Sections have now disappeared!
    What have I done wrong?

    #1771847
    Chris

    UPDATE: I have solved this. I looked at earlier posts and found you have recently deprecated Sections. I then found this code:

    add_filter( ‘generate_premium_deprecated_modules’, function( $modules ) {

    foreach ($modules as $key => $value){
    if ($value == ‘Sections’) {
    unset($modules[$key]);
    }
    }
    return $modules;

    });

    Added it in functions.php and lo and behold, the Sections came back.

    #1771861
    Elvin
    Staff
    Customer Support

    Hi there,

    Yeah that’s from here – https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1756795

    glad you found it! Thank you for letting us know. ๐Ÿ™‚

    Note: Make sure you add the PHP snippet on a child theme’s functions.php and NOT on the parent theme’s. It’ll get wiped on update if it’s in the parent theme’s functions.php.

    #1771862
    Chris

    Yep, I added it on the child theme! Many thanks.

    #1771868
    Elvin
    Staff
    Customer Support

    Nice one. Glad you go it sorted. ๐Ÿ˜€

    #1778284
    Margott

    Sections was the main reason I use GP. Wow — need to find a new theme.

    #1778290
    Margott

    solved — just loaded in an older premium plugin

    #1778297
    Leo
    Staff
    Customer Support

    That’s not a good solution.

    Please take a look at Tom’s reply here:
    https://generatepress.com/forums/topic/previous-latest-gpp-version-1-12-3/#post-1754467

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.