- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › Restaurantz › Show Specific Menu Section in Menu Page Template
Tagged: Menu Page template
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();
?>
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!!
There are two menu categories i.e. “vegetarian, Chicken Entrees”.
I want to show only Vegetarian menu Category on this page.
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!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |