Tagged: description, mega menu
-
AuthorPosts
-
March 21, 2015 at 5:42 pm #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?
March 22, 2015 at 3:40 pm #415971Currently it’ looks like something like this:
Mega Menu Column
———————————-
Sub Menu 1
Sub Menu 2
Sub Menu 3I 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, 6 months ago by santoshachari.
March 24, 2015 at 3:04 am #416868Hey!
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,
IsmaelMarch 25, 2015 at 1:07 pm #417714I 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
March 27, 2015 at 1:37 am #418985Hey!
Not necessarily,
avia_responsive_mega_menu
is pluggable, that means you can just copy the wholeavia_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.
February 9, 2018 at 12:09 pm #910222This 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)
February 10, 2018 at 6:23 am #910475 -
AuthorPosts
- You must be logged in to reply to this topic.