Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1063712

    Hi,

    the submenu element is not sticky anymore.

    • To exclude plugins as reasons we disabled them
    • No errors in console logged
    • Submenu item enabled in performance options
    • Script compressing disabled
    • No caching

    Is it general issue or just with our installation?

    #1063915

    Hey rup,

    I just tested it on my local install on Enfold and it works fine.
    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1064602

    Hi,

    i think i’ve found it. Check out your demo installation with a BURGER main menu and try again.
    in menu.js there’s this piece of code:

    /**
    					 * If we have burger menu active we ignore sticking submenus
    					 */
    					if( burger_menu.is(":visible") )
    					{
    						this.css({top: 'auto', position: 'absolute'}); fixed = false;
    						return;
    					}

    Is there a possibility you enable the sticky submenu for burger menu too? Or how can i overwrite it? I want to keep theme update safe.

    Best,
    Pat

    #1064652

    Hi Pat,

    You can copy menu.js to the js folder of your child theme so the directory structure should be enfold-child > js > menu.js
    Then modify menu.js and on the functions.php of your child theme add:

    // Replace avia.js
    function change_menujs() {
      wp_dequeue_script( 'avia-module-menu' );
      wp_enqueue_script( 'avia-module-menu-child', get_stylesheet_directory_uri().'/js/menu.js', array('avia-shortcodes'), false, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_menujs', 100 );

    Hope this helps.

    Best regards,
    Nikko

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