Add active class in current page link in wordpress

It uses the following code to add the class “active” to any links in the header if the user is currently on that page:

<style>

.current_page_parent a {
   color:red;
}

</style>

 

 

 

 

 

 

Leave a Reply