Ready to get started?Download WordPress


Add a class to menu ul tag? (2 posts)

  1. KayLee1000
    Posted 2 years ago #

    I use this code for my menu:
    <?php wp_nav_menu( array('menu' => 'header-menu' )); ?>

    How can I add a css class to the

      tag that appears around it?

    I know that I can wrap it in another div, but my theme is coded in html/css, and I'm coverting it to wordpress, and right now, it's <ul class="head-menu">, so I don't want to edit the css files.

    Thanx a bunch!

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    This might be helpful: Menu Function Reference

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.