Slide Panel

  • danbailan


    Is there a way to only have the slide panel option activated on the homepage or only on the homepage and other specific pages?

    I am trying to do it in reverse by using

    .page-id-x .side-panel-toggle {

    and applying it to every page other than the homepage, but on Iphone this is causing a flash screen of the side panel as you open each and every page, as you navigate through the site.

    Many thanks for your help


    Syahir Hakim


    You can achieve this cleanly by using a (pseudo-)child theme for Neo. In child theme’s functions.php file:

    function my_selective_slide_panel_disable(){
    if ( ! is_home() ) {
    global $gmneo_settings;
    $gmneo_settings['slide_panel_enable'] = false;
    add_action( 'template_redirect', 'my_selective_slide_panel_disable' );



    Many thanks for this.

    Will start to play around with it and if I may, come back to the forum with any further questions


    Syahir Hakim


    OK, marking this as resolved. Feel free to change it back if you have questions later.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.