[Support request] Problem with slide menu after update

Home Forums Support [Support request] Problem with slide menu after update

Home Forums Support Problem with slide menu after update

  • This topic has 14 replies, 4 voices, and was last updated 3 years ago by Tom.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #536095
    Adam Zátopek

    Hi Tom,
    Maybe 1 year ago, you send me css for floating slide out menu. After last update I see problem with this solution. I cant use Burger Menu. Because when I click on Menu, url change to /#generate-slideout-menu and menu doesnt open.

    #site-navigation { background: rgba(34, 34, 34, 0.8); }
    .main-navigation { background: rgba(0,0,0,.4); position: fixed; }
    .main-navigation:hover { background: rgba(0,0,0,.6); }
    .main-navigation .main-nav ul .current-menu-item > a { background: rgba(0,0,0,.6); }
    .main-navigation .main-nav ul li > a:hover { background: #222222; }
    li.slideout-toggle.opened {display: none!important;}
    .menu-toggle.opened {display: none!important;}

    I dont know why items dont generate in menu.
    Thank you for your help.

    Adam Zátopek
    Webmaster
    Contact email: adamzatopek@gmail.com
    Contact phone number: +420 731 554 235
    http://www.tint.cz/
    http://www.odborythzokd.cz/
    http://www.pizzasumperk.cz/
    http://www.cp1cafe.cz/
    http://www.optikastodulky.cz/
    http://www.ochi.cz/

    GP Premium 1.6.2
    #536280
    Tom
    Lead Developer
    Lead Developer

    You have a couple javascript errors which are preventing it from working. The errors are happening because a couple GP elements aren’t being added into your footer.

    Are you using NextGen Gallery by chance? If not, can you try deactivating your plugins one by one to find the conflict?

    #536372
    Adam Zátopek

    Hi Tom,
    yes I have NextGen Gallery.

    Adam Zátopek
    Webmaster
    Contact email: adamzatopek@gmail.com
    Contact phone number: +420 731 554 235
    http://www.tint.cz/
    http://www.odborythzokd.cz/
    http://www.pizzasumperk.cz/
    http://www.cp1cafe.cz/
    http://www.optikastodulky.cz/
    http://www.ochi.cz/

    #536764
    Tom
    Lead Developer
    Lead Developer

    I need to get in touch with them to see why their plugin is preventing our hooks.

    Try this:

    add_action( 'after_setup_theme', 'tu_fix_nextgen_issues' );
    function tu_fix_nextgen_issues() {
        remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
        add_action( 'generate_before_footer', 'generate_slideout_navigation' );
    
        remove_action( 'wp_footer', 'generate_back_to_top' );
        add_action( 'generate_after_footer', 'generate_back_to_top' );
    }

    EDIT

    As of GP 2.1, you only need to do this:

    add_action( 'after_setup_theme', 'tu_fix_nextgen_issues' );
    function tu_fix_nextgen_issues() {
        remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
        add_action( 'generate_before_footer', 'generate_slideout_navigation' );
    }
    #538372
    xdaniel

    Hello Tom,

    added the snippet to several of my sites into the functions.php manually and the slideout nav is back. But the to top button is still gone away. The button comes back when I deactivate nextgen. Hope you find a way to come in contact with nextgen.

    Best, Daniel // Didn’t want to answer here…

    #538791
    Tom
    Lead Developer
    Lead Developer

    Sorry about that – I just adjusted the code above to fix the back to top button as well.

    #538912
    Adam Zátopek

    Hi Tom,
    thank you. This hotfix work. If you need help with support in nextgen forum, I can help you.

    Adam Zátopek
    Webmaster
    Contact email: adamzatopek@gmail.com
    Contact phone number: +420 731 554 235
    http://www.tint.cz/
    http://www.odborythzokd.cz/
    http://www.pizzasumperk.cz/
    http://www.cp1cafe.cz/
    http://www.optikastodulky.cz/
    http://www.ochi.cz/

    #539235
    Tom
    Lead Developer
    Lead Developer

    I’ll open a topic with them tomorrow 🙂

    #564595
    Alok Sharma

    Hi Tom,

    Did you get any feedback from the Imagely team?

    Thanks,

    Alok Sharma
    https://aloksharma.in

    #564759
    Tom
    Lead Developer
    Lead Developer

    I didn’t.

    What I’ve done is add a new hook into GP 2.1, which should fix it.

    #564778
    Alok Sharma

    Perfect.

    Looking forward to the update.

    Thanks,

    Alok Sharma
    https://aloksharma.in

    #565846
    xdaniel

    Hello Tom,

    this problem seems to be back in 2.1?

    Best, Daniel

    #565847
    Tom
    Lead Developer
    Lead Developer
    #565852
    xdaniel

    I am in a multisite where several sites use other themes. Can I add this into a code snippet and network activate it? Or do I need an if-statement?

    #565853
    Tom
    Lead Developer
    Lead Developer

    I would only add it to sites using GeneratePress.

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