• Resolved scientificleague

    (@scientificleague)


    This is my test page: https://www.samueldupont.com

    First, I want to say that this is an amazingly designed plugin. Due to this I really want to figure out my issue so I can employ this great plugin!

    After installation, and a slight modification to my Thesis skin’s custom.php, I am getting the Max Mega Menu and it is somehow including a second vertical menu which seems to be completely unformatted. Without the custom.php modification I cannot even get the menu to show up. I used this code to accomplish this (I would link, but it is a protected forum):

    add_action( 'after_setup_theme', 'register_my_menu' ); 
    
    function register_my_menu() {
      register_nav_menu( 'primary', 'Primary Menu' );
    } 
    
    add_action('hook_bottom_header','my_nav_menu'); 
    
    function my_nav_menu() {
        wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) );
    }

    I am using the Thesis 2.1 framework with it’s default Classic Responsive skin. I have so far asked the folks at Thesis about this issue and the only help I received was to use another plugin option :(. I have gone through and removed (by commenting-out) all css that refers to any menu element, this seems to make no difference.

    As you had suggested on a previous topic here I made the modifications you suggested but was still unable to remove the secondary menu.

    I am not sure if this will help, but I will include the two primary .php files for the skin that I am using.

    default.txt

    skin.txt

    Thank you so much for your time and attention and any help is greatly appreciated!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi, its difficult to see whats happening, but I think maybe the primary nav menu is already registered by your theme, which may explain why 2 menus are showing up. Please try changing your code to this:

    add_action( 'after_setup_theme', 'register_my_menu' ); 
    
    function register_my_menu() {
      register_nav_menu( 'maxmegamenu', 'Max Mega Menu Location' );
    } 
    
    add_action('hook_bottom_header','my_nav_menu'); 
    
    function my_nav_menu() {
        wp_nav_menu( array( 'theme_location' => 'maxmegamenu' ) );
    }

    Then go back to your WordPress menu page and tag your header menu to the Max Mega Menu Location (and untag any menu from the primary location if that still exists).

    Regards,
    Tom

    Thread Starter scientificleague

    (@scientificleague)

    Tom,

    I added the code you provided to the custom.php of the theme. As you replied so quickly (thank you for that) I was having trouble including the two .php files for you to have access to. Now if you click on the links in my first post you should have access to this code. I am still having the same issue, although now, the only option in WP menus for a “theme locations” menu is the one you provided “Max Mega Menu Location”. I attempted to include both the old code and your new code but that crashed WP. Any thoughts? Thank you again, and I have to say I am very impressed by your responsiveness. If there is anywhere I can provide you proper accolades (besides commenting in the WP plugins area) please let me know!

    Plugin Author megamenu

    (@megamenu)

    Hi,

    The files don’t tell me too much unfortunately.

    The menu-sam-main ( https://screencast.com/t/9jNK3LT9 ) sounds like its been added on purpose (going by the fact its got ‘sam’ in the ID), can you search the whole theme for ‘menu-sam-main’?

    Alternatively you could just add this CSS:

    #menu-sam-main {
        display: none;
    }

    Not pretty but it should do the job ??

    Regards,
    Tom

    Thread Starter scientificleague

    (@scientificleague)

    Ahh, that menu, “Sam Main” is the name I gave to the Menu structure defined in the default WordPress menu. I have included an image of this here.

    I updated the css to include your suggestion and it removed the second menu. But just curious, do you think there is a more straightforward way to accomplish this? Should I be giving my WP menus a specific name? Thank you VERY MUCH, again!

    Plugin Author megamenu

    (@megamenu)

    Ah, that sort of makes sense.

    There will be, somewhere in your theme, a call to wp_nav_menu which is outputting that menu. I can’t tell you where without seeing all the files, but if you download your theme locally and search for ‘wp_nav_menu’ I fairly confident you’ll find it in there somewhere.

    If you could leave a review for the plugin I’d appreciate it ??

    Regards,
    Tom

    Thread Starter scientificleague

    (@scientificleague)

    Reviewed..! Thank you again Tom! I will look into this a little more and see if I can find another way to fix the wp_nav_menu reference without having to resort to a display: none. If i find anything I will post here for your (and other user’s) reference!

    Plugin Author megamenu

    (@megamenu)

    You’re welcome, thanks for the review, much appreciated ??

    Thread Starter scientificleague

    (@scientificleague)

    I hate to be a pain, but the previous site is mostly a test site and I really want to use the plugin on this site https://www.scientificleague.com

    Strangely, I followed the exact procedure as before but never ended up having the “dual” menu issue. The only thing that is different is I could not use the “display:none;” css as it would completely remove any trace of the menu. The menu I am getting now is unformatted (most likely to having removed all of the menu-related css in my theme’s file). I do not even notice a reference for the Mega Max Menu element when I inspect the page in chrome. It is as if it is not initializing at all. I have added the extra php code which allowed me to select my WP menu and activate the Mega Max Menu plugin in the appearance/menu tab in WP. I am a bit confused. Any suggestions? Again, I am sorry to keep bothering you about this issue and am extremely grateful for your attention.

    Plugin Author megamenu

    (@megamenu)

    Quick update (doing some housekeeping), this was resolved here:

    https://www.ads-software.com/support/topic/submenus-not-showing-3?replies=3

    How to set css of max mega menu??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Using Max Mega Menu with Thesis 2.1 is showing 2 menus’ is closed to new replies.