• Resolved Vel

    (@vhg)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Vel,

    There doesn’t seem to be anything wrong with your code so it would be very difficult to say without looking at your site (but you say its on localhost) unfortunately.

    Please let me know if you can provide access or find anything else that may help out.

    Peter

    Thread Starter Vel

    (@vhg)

    Hi Peter,

    the site is online now, but I’m not allowed to share online link to the site (it’s client’s requirement). How can I share it privately?

    Thanks,
    Vel

    Hey Vel,

    You can share it via my contact form below:

    https://responsive.menu/contact

    Peter

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t show different menu on specific pages’ is closed to new replies.