Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nmilner

    (@nmilner)

    @diggeddy : thank you ever so much – exactly what I needed 🙂

    Thread Starter nmilner

    (@nmilner)

    Sorry, I haven’t really explained what I am doing very well.

    I have a plugin that I wrote which changes the primary menu based on the wordpress page and the code above is what is in my plugin. It has worked fine until I used it with the GeneratePress theme.

    I have been researching and I tried also using this to change the primary menu set in the theme but now I get no menus at all :/

    I have a number of Menus defined in the wordpress site and all I’m trying to do is change the menu used by GeneratePress as the primary menu based on the page that is is being displayed. I guess I’m going down the wrong track with the snippets I have used and therefore I’d be grateful if you could tell me the correct me to have my plugin change the menu used for the primary menu in GeneratePress based on the page that has loaded.

Viewing 2 replies - 1 through 2 (of 2 total)