• Resolved Blipp

    (@blipp)


    I want to use a different menu within the ‘shop’ section on a site, from the primary menu used in other areas on the site. My theme gives me the option to choose a different menu for each page that exists so it is easy to a point. However the problem I am having is that it is not possible for me to select a menu on the dynamic pages, such as the woocommerce single product page.

    Viewing a single product currently means the menu reverts to the default primary menu.

    Is there a way, perhaps by inserting some code into the functions.php file that I can set a specifically chosen menu to be used on the woocommerce single product pages?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    Thank you for reaching out!

    WooCommerce by default does not control the menus so it sounds like this functionality of your theme is not compatible with WooCommerce pages like product or category pages.

    You could try overriding the single product and category template files:

    https://docs.woocommerce.com/document/template-structure/

    Although I don’t know how exactly your theme works and if such override would even help.

    This is a fairly complex development topic so I’ll leave this thread open in case someone else has better suggestions, however, you may want to reach out to the support team of your theme and ask them what’s the best approach here.

    Thread Starter Blipp

    (@blipp)

    Thanks for your response. I have contacted the theme support. Although the theme itself is really powerful and provides the facility to select a different menu on a page by page basis the problem always comes back to the dynamic pages. I can set the default menu to be ‘main’ and then override on all the shop pages selecting ‘shop menu’ as the menu, but then the default menu appears on the single product page as this is the dynamic page I am unable to overide. Or I set the default menu to be ‘shop menu’ then override on all the main site pages, but then my blog posts, the dynamic pages, contain the shop menu. I can’t win!

    It seems such a simple thing but it has beaten me.

    Thread Starter Blipp

    (@blipp)

    I found a plugin called ‘Conditional Menus’ which seems to solve the problem.

    Plugin Support slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    Glad to hear you found a way to have it work like you wanted.

    I’m closing this on our end, have a great one!

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

The topic ‘single product page menu change required’ is closed to new replies.