How could I change principal menu if my url contains ‘espace-professionnel’ ?

I know that I have to use strpos and I know how to use it, but I don’t find the right place in the code.

I’m working with WordPress and Divi theme.

Read more here: Change menu if url contains a certain string WordPress


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: