Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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?

    #668431

    Hey 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,
    Rikard

    #910226

    Hi There. I was wondering how it is possible to show the description.
    This culd be helpfull to show special informations in he Responsive Menu

    #910250

    Hi,
    Glad this was helpful, if your interested we also have some Video Tutorials on all of the elements.

    Best regards,
    Mike

    #1014029
    This reply has been marked as private.
    #1014231

    Hi 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,
    Victoria

    #1014233

    If i get the E-Mails from Sproutstudio somethiung is wrong here.

    #1014297

    Sure.

    #1014302

    Hi 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,
    Victoria

    #1014436

    Why 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, 1 month ago by sproutstudio.
    #1014623

    Hi,

    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,
    Ismael

    #1015112

    Ismael,

    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!

    #1015565

    Hi,
    Please try this code in the General Styling > Quick CSS field:

    #top li span.avia-menu-text {
    color: gray !important;
    }
    #top li span.avia-menu-subtext {
    color: purple !important;
    }

    Best regards,
    Mike

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