Support » Fixing WordPress » clean up some Code from the WordPress menus

  • Hello people I am very new to WordPress and just trying to edit the templates for the menus of WordPress 3. However, I have a problem here.

    How can I clean up some Code from WordPress-Menus?

    <ul id="menu-haupnavigation" class="menu">
    <li id="menu-item-38" class="menu-item menu-item-type-post_type current-menu-item page_item page-item-2 current_page_item menu-item-38">
    <a href="">News</a></li>
    <li id="menu-item-37" class="menu-item menu-item-type-post_type menu-item-37"><a href="">Termine</a></li>


    <li class="active"><a href="">News</a></li>
    <li><a href="">Termine</a></li>

    The only class that I want to use in my example is (in active sites) class = “active”.

    In the reference “…ce/wp_nav_menu” I have found, unfortunately, not the right but maybe you can help me.

    My current menu configuration in the template:

    <?php wp_nav_menu( array(
                          'theme_location' => 'first',
                        'container' => '',
                         'depth'     => 0,
                        'container_class' => ''
                        ) ); ?>


  • The topic ‘clean up some Code from the WordPress menus’ is closed to new replies.