Can’t show different menu on specific pages
-
Hi,
I’m working on theme, where I have third menu and this menu should be visible only on 3 pages replacing main menu. I have IF statement like this:
<?php if (is_page (array(554, 556, 558))) {
echo do_shortcode(‘[responsive_menu menu_to_use=”custom-nav”]’);
} else {
echo do_shortcode(‘[responsive_menu]’);
} ?>
placed just before wp_footer();
On those 3 pages I see both menus “main” and “custom-nav” instead only “custom-nav” and “custom-nav” is visible as regular links instead responsive menu. The shortcode usage is turned ON.
Any idea what I’m doing wrong will be helpful. Sorry, but can’t post link to site since it’s on local machine.Thanks,
Vel
- The topic ‘Can’t show different menu on specific pages’ is closed to new replies.