Change menu if url contains a certain string WordPress

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

Leave a Reply

Your email address will not be published. Required fields are marked *