Below is the navigation structure that i want to add the class of hvr-bounce-to-bottom to only the parent li . can anybody help me out.

<div id="cssmenu">
            <ul>
                <li class="active hvr-bounce-to-bottom"><a href="index.html">Home</a>
                </li>
                <li class="hvr-bounce-to-bottom"><a href="social.html">Social Media</a>
                </li>
                <li class="hvr-bounce-to-bottom"><a href="animation.html">Animated Videos</a>
                </li>
                <li class="hvr-bounce-to-bottom"><a href="webdesign.html">Web Development</a>
                </li>
                <li class="hvr-bounce-to-bottom dropdown"><a href="writing.html">Content Writing </a>
                    <ul class="dropdown">
                        <li><a href="#">Test one</a></li>
                        <li><a href="#">Test one</a></li>
                        <li><a href="#">Test one</a></li>
                        <li><a href="#">Test one</a></li>

                    </ul>
                </li>
                <li class="hvr-bounce-to-bottom"><a href="translation.html">Translation</a>
                </li>
                <li class="hvr-bounce-to-bottom"><a href="portfolio.html">Portfolio </a>
                </li>
            </ul>
        </div>

Read more here: I wan to add class for the parents li in wordpress walker navigation , not to sub li


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: