queue  45
support
Results 1 to 7 of 7

Thread: How to activate clickable parent menus ?

  1. #1
    Junior Member
    Join Date
    Aug 2015
    Posts
    3

    How to activate clickable parent menus ?

    Hi,

    I have installed Ernesto and I have still not found the way to make the parent links on the general menu work. I have this structure :

    Home
    Parent Page 1 > Sub Page 1 > Sub Page 2
    Parent Page 2 > Sub Page 1 > Sub Page 2

    The parent pages are regular pages created in WP added to the menu but it's not possible to access these pages from this menu. Only the subpages work. I tried using "link" and not "page" but still not working. Do you have any solution ?

    Thanks

  2. #2
    Support Anand's Avatar
    Join Date
    Jan 2014
    Posts
    9,896
    Hi,

    Add this to your Custom JS field by navigating to Appearance -> Theme Options -> General panel:
    Code:
    jQuery( function( $ ) {
    
    setTimeout( function() {
    jQuery("a.dropdown-toggle").on("click", function() { 
        window.location.href = jQuery(this).attr("href"); 
    });
    }, 1000);
    
    });
    That should do the trick
    Last edited by Anand; 08-26-2015 at 16:33. Reason: removed .desktop

  3. #3
    Junior Member
    Join Date
    Aug 2015
    Posts
    3
    Thanks, I've tried it but don't seem to work sorry... Maybe I should copy it in the code ?

  4. #4
    Support Anand's Avatar
    Join Date
    Jan 2014
    Posts
    9,896
    Hi,

    Please add the code to Custom JS field, and share the URL of your site so that I can check why the code isn't working as it works fine locally at my end.

  5. #5
    Support Anand's Avatar
    Join Date
    Jan 2014
    Posts
    9,896
    Hi,

    I have made a small change to the code I provided earlier. Can you please try using the updated code and see if that works.

  6. #6
    Junior Member
    Join Date
    Aug 2015
    Posts
    3
    Hi,

    It works right now, thanks a lot !

  7. #7
    Support Anand's Avatar
    Join Date
    Jan 2014
    Posts
    9,896
    If you are happy with our product & support, please consider giving it a 5 star rating.
    Good ratings promote sales and ensure continued feature updates.
    Rating is done via the "Downloads" page of your Envato account.

    Thank you