Home Forums Free Themes Restaurantz Show Specific Menu Section in Menu Page Template

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43341
    piyushsj
    Participant

    First of all Restaurantz is a wonderful theme. Thank you for creating this theme.

    I created menu items under “Vegetarian” menu section.

    I need to show a specific Menu Section “vegetarian” in Menu Page Template.

    Need help to edit following loop,

    <?php
    $loop = new WP_Query( array( ‘post_type’ => ‘nova_menu_item’ ) );
    while ( $loop->have_posts() ) : $loop->the_post();
    get_template_part( ‘template-parts/content’, ‘menu’ );
    endwhile; // End of the Menu Item Loop.
    wp_reset_postdata();
    ?>

    #43342
    wensolutions
    Keymaster

    Hello @piyushsj,

    To show specific menu you don’t have to edit Menu Page Template .

    For this you can simply create the menu category by going to Admin Panel > Food Menus . Add menu items in the category created and save them .

    Now you will have the specific menu that you have created in the page where you have assign the menu page template .

    If this does not fix the issue, kindly let us know.

    Best Regards!!

    #43350
    piyushsj
    Participant

    There are two menu categories i.e. “vegetarian, Chicken Entrees”.

    I want to show only Vegetarian menu Category on this page.

    http://beta.thecurrymantra.com/menu/

    #43390
    wensolutions
    Keymaster

    Hello @piyushsj,

    We are not very clear that you completely want to remove the Chicken Entrees menu from the site or you simply want to remove it from this particular page .

    If you completely want to remove them then you can go to Admin Panel > Food Menu > Menu items and delete the Chicken Entrees .

    IF you want the menu item to simply remove it from this particular page then you can use the CSS given below .

    For this go to Admin Panel > Appearance > Customize > Additional CSS and paste below given CSS.

    .page-id-14 .menu-items:nth-of-type(2) {
        display: none;
    }

    Hope this helps .

    Best Regards!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.