I’m trying to add an active state to my ‘li’s’ in wordpress, and I can see in the dev tools that it’s adding the class but then it just disappears. Am I missing something obvious? It’s a WordPress nav. Thanks!

 $(document).ready(function() {
  $('#menu-nav a').click(function() {
        $('#menu-nav a').removeClass('activeNav');

Read more here: WordPress navigation add/remove class not working


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

Related Wordpress search:

, , , ,

Wordpress related questions and answers: