I would need to set a class of a secondary menu if the currently loaded page has, for example, the category "clients".

For different primary menus I will use https://en.wordpress.org/plugins/conditional-menus/

and to make the category available on the page, I use functions

I would like to create a similar type of menu as on partners.cz

  • You can easily do this via javascript, PHP solution is also possible but you will need to write code by using custom menu walker class if you can provide your category page link I can check about javascript code. – Den Pat Sep 8 at 17:51
  • Finally I solved it through the plugin https://wordpress.org/plugins/conditional-menus/. – bobo bobo Sep 8 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.