• Resolved Make carlos

    (@make-carlos)


    Parent
    Main Sub1
    Sub1
    sub2
    sub3

    Sub4
    Sub5
    Sub6

    Sub7
    Sub8
    Sub9

    Main sub2
    Sub1
    sub2
    sub3

    Sub4
    Sub5
    Sub6

    Sub7
    Sub8
    Sub9

    So we need like when we hover on parent it should show all sub that is called: Main Sub1, Main sub2 etc(verticle)
    when we hover on Main Sub1 should show all sub in 3 columns (should show in right side) and need to show text before and after those column means need top text and bottm text

    is this possible ?
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi,

    I don’t understand sorry. Could you make a screenshot, upload it to imgur.com and paste the link here?

    In general you should use the demo menu on megamenu.com as an example of what is possible.

    Regards,
    Tom

    Thread Starter Make carlos

    (@make-carlos)

    Hi

    Okay thanks for your reply. I got your point but i need another question.

    I need to show content before and after submenu and this is for second level submenu and as per your plugin we can add columns and html, image etc on parent level.

    So how can we do for second child level menu ? Is there any hook available to show content before and after ?

    Thread Starter Make carlos

    (@make-carlos)

    class Custom_Walker_Nav_Menu extends Walker_Nav_Menu {
    function start_lvl( &$output, $depth = 0, $args = null ) {
    // Call the parent function to maintain default behavior
    parent::start_lvl( $output, $depth, $args );

    // Check if we're in a second-level menu
    if ( $depth === 1 ) {
    // Add your custom HTML before the second-level menu
    $output .= '<div class="menu-section">';
    $output .= '<div class="top-menu-content">';
    $output .= '<h2>' . esc_html( $args->item->title ) . ' Programs</h2>';
    $output .= '<p>' . get_post_meta( $args->item->ID, 'menu_description', true ) . '</p>';
    $output .= '</div>';
    }
    }
    }

    // Usage in wp_nav_menu
    wp_nav_menu( array(
    'theme_location' => 'your_menu_location',
    'walker' => new Custom_Walker_Nav_Menu(),
    ) );

    If i use custom walker menu then does it apply to override mega menu or not ?

    Please advice

    Plugin Author megamenu

    (@megamenu)

    Hi,

    The menu uses a strict ul/li structure, so you would need to conform to that if you don’t want to break the menu markup and CSS (the code above looks like it would insert <div>’s where they shouldn’t be). I’m not exactly sure what you’re trying to do, but maybe using a single custom HTML widget in the sub menu (100% wide), and custom coding the sub menu contents will give you the flexibility you’re looking for. Or you also have the option of custom coding widgets and placing them within the sub menu layout.

    Regards,
    Tom

    Thread Starter Make carlos

    (@make-carlos)

    Thank you for your message. As you know only parent level have settings for adding columns like 2 columns and 3 columns etc but I need that column in sub menus(sub sub), is this possible with pro version ?

    Thread Starter Make carlos

    (@make-carlos)

    Okay please check this screenshot. what i am trying to achieve.

    left side section is submenu and right side one sub sub menu. Please check content Up and down

    https://snipboard.io/i295hK.jpg

    I hope that make sense now ?

    Plugin Author megamenu

    (@megamenu)

    Hi,

    The closest functionality we have to that is the Tabs option in Pro. Please check the demo menu on the homepage of megamenu.com.

    Please note that our support doesn’t include custom styling (which you will need to do a lot of in order to replicate the screenshot), so please only purchase a licence if you have the technical know-how to do it. You should use our demo as a reference for what is possible with our plugin. Alternatively, custom coding your own solution would of course give you the most flexibility in making your design.

    Regards,
    Tom

    Thread Starter Make carlos

    (@make-carlos)

    Okay thank you. I will check

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