Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #415764

    I want to show both the link and a description under the link in the Mega Menu. I see it’s either link or the description at the moment. Can you share how to do this?

    #415971

    Currently it’ looks like something like this:

    Mega Menu Column
    ———————————-
    Sub Menu 1
    Sub Menu 2
    Sub Menu 3

    I want it like this:
    Mega Menu Column
    ———————————-
    Sub Menu 1
    One line description
    Sub Menu 2
    One line description
    Sub Menu 3
    One line description

    • This reply was modified 9 years, 7 months ago by santoshachari.
    #416868

    Hey!

    Thank you for using Enfold.

    You can edit includes > helper-responsive-megamenu.php, look for this code:

    $item_output .= $args->link_before .'<span class="avia-menu-text">'. do_shortcode(apply_filters('the_title', $item->title, $item->ID)) ."</span>". $args->link_after;
    

    Replace it with:

    $item_output .= $args->link_before .'<span class="avia-menu-text">'. do_shortcode(apply_filters('the_title', $item->title, $item->ID)) . "<br>" . do_shortcode($item->description) ."</span>". $args->link_after;
    

    Regards,
    Ismael

    #417714

    I use a child theme. Do you have to copy the file in the Child theme folder (along with the directory structure), and then do the changes?

    • This reply was modified 9 years, 6 months ago by santoshachari. Reason: typo
    #418985

    Hey!

    Not necessarily, avia_responsive_mega_menu is pluggable, that means you can just copy the whole avia_responsive_mega_menu class (including the !class_exists conditional) to your child functions.php file and it will override the original one.

    Best regards,
    Josue

    • This reply was modified 9 years, 6 months ago by Josue.
    #910222

    This sounds likea super info… So i make a folder in the choildtheme and put the includes folder and the *.php file or should i put it in my function (that is new)

    #910475

    Hi hunter74,

    I think that should still work yes, please let us know if you should need any help.

    Best regards,
    Rikard

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