Tagged: menu description
-
AuthorPosts
-
August 2, 2016 at 9:33 am #667561
Can someone please help me with this issue?
I’m trying to get the menu description under the menu title in the menu. It’s show standard a menu title, but I need to change something in the functions.php of the child theme. Can’t get it to work. Tried a few examples of other forums like:
<?php
function be_header_menu_desc( $item_output, $item, $depth, $args ) {
if( ‘header’ == $args->theme_location && ! $depth && $item->description )
$item_output = str_replace( ‘‘, ‘<span class=”description”>’ . $item->description . ‘</span>‘, $item_output );return $item_output;
}
add_filter( ‘walker_nav_menu_start_el’, ‘be_header_menu_desc’, 10, 4 );?>
Is there anybody who can help me with this?
August 4, 2016 at 8:34 am #668431Hey rob_alblasserdam,
You should be able to do that under Appearance–>Menus, if you can’t see the field in question then please select to show it under Screen Options in the top right hand corner of the screen.
Regards,
RikardFebruary 9, 2018 at 12:14 pm #910226Hi There. I was wondering how it is possible to show the description.
This culd be helpfull to show special informations in he Responsive MenuFebruary 9, 2018 at 1:48 pm #910250Hi,
Glad this was helpful, if your interested we also have some Video Tutorials on all of the elements.Best regards,
MikeSeptember 25, 2018 at 7:52 am #1014029This reply has been marked as private.September 25, 2018 at 3:26 pm #1014231Hi sproutstudio,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaSeptember 25, 2018 at 3:27 pm #1014233If i get the E-Mails from Sproutstudio somethiung is wrong here.
September 25, 2018 at 5:06 pm #1014297Sure.
September 25, 2018 at 5:15 pm #1014302Hi hunter74,
No, sproutstudio also commented on your thread and so you’re getting notifications. There is nothing wrong with this.
@sproutstudio Please start a separate thread, describe your issue there and give us a link to your website.Best regards,
VictoriaSeptember 25, 2018 at 7:47 pm #1014436Why do I need to start a new thread if it’s related to this thread?
How do I start a new thread?- This reply was modified 6 years, 3 months ago by sproutstudio.
September 26, 2018 at 10:03 am #1014623Hi,
You can start a new thread here: https://kriesi.at/support/forum/enfold/#new-post
Regarding the original question, you can add a description to the menu items and then use the following css codes to toggle the visibility of the subtext container.
.avia-menu-subtext, #top .sub-menu .avia-menu-subtext { position: absolute; top: 0; font-size: 9px; display: block; left: 0; }
It is hidden by default.
Best regards,
IsmaelSeptember 27, 2018 at 5:39 am #1015112Ismael,
That worked like a charm thank you!!! What codes/classes should I use if I want to style the main text and the subtext differently? ( For example: Main: grey font with serif, Sub: purple font sans serif )
Thank you!
September 28, 2018 at 2:38 am #1015565 -
AuthorPosts
- You must be logged in to reply to this topic.