• Resolved Mehmet

    (@mhmtozek)


    I googled, but could’t find an exact answer.

    This is what i have in use
    wp_nav_menu( array('theme_location' => 'masthead', 'container' => false, 'menu_class' => 'mastheadnav dropdown' ));

    it returns me

    <div class="mastheadnav dropdown">
    <ul>
    <li class="page_item page-item-2"><a href="#" title="About Us">About Us</a></li>
    </ul>
    </div>

    I need mastheadnav dropdown classes to be assigned to

    <ul> element, not to a wrapper div. How do i achive that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mehmet

    (@mhmtozek)

    My mistake with this, it works as expected..

    Moderator Kathryn Presner

    (@zoonini)

    Glad this is solved. Would you please mark this thread as resolved so folks can keep better track of whose issues are still outstanding. Thanks.

    Hi, I am trying to accomplish something similar but want to change the class of the first <ul class=’children’> of my menu. I want to change the width of the first dropdown on my navigation and need to be able to do assign a different class. Do you guys happen to know of away to change the class of the first “child”? My page is https://www.designremedyinc.com/indyme

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom menu ul class’ is closed to new replies.