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

    (@dranish)

    Hi, I need remove one item from the menu that have the ID=4, I try whit “exclude=4” but cant do it.

    I use this code:
    <?php echo do_shortcode(‘[srMenu theme_location=primary]’);?>

    How exclude the id=4?

    Thanks again

    Plugin Author Pukhraj Suthar

    (@sutharinfo)

    Hi dranish

    This features is not available here.
    but you can use below code and let me know if any issue.

    <?php
    if (!is_page(4,6,7)) {
    
         echo do_shortcode('[srMenu theme_location=primary]');
     }
    
    ?>

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove page from menu’ is closed to new replies.