Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Aurelian Spodarec
Aurelian Spodarec
10,801 Points

How do I put my class in WordPress?

How do I put my class In WordPress?

So I need my class, to be in the LI, as well as change the --active , on wherever it is active.

How can I do it?

Here's my code.

            <nav class="header__navigation">
             <?php
                $args = array(

                   'menu_class' => 'header__navigation__list',
                   'container' => 'false'
                );
                wp_nav_menu( $args );
              ?>
           <!--  <ul class="header__navigation__list">
                <li class="header__navigation__item--active"><a href="index.html">Articles</a></li>
                <li class="header__navigation__item"><a href="videos.html">Videos</a></li>
                <li class="header__navigation__item"><a href="about.html">About</a></li>
                <li class="header__navigation__item"><a href="resources.html">Resources</a></li>
                <li class="header__navigation__item"><a href="contact.html">Contact</a></li>
            </ul> -->
            </nav>

As you can see, it's there, but how can i set the li to be my css, not the default WP CSS?