Table of Contents
There are few ways to customize default output of Restaurant Menu content, menu item page, category layout, widgets, etc:
– using actions and filters.
– overriding plugin templates
Override post type page and category templates
In order to override plugin templates you should copy template file from plugin folder, paste it to root folder of your active theme and modify this file.
For example: to override Menu Item page template you should copy file at
wp-content /plugins/mp-restaurant-menu/templates/ single-mp_menu_item.php
wp-content /themes/yourtheme/ single-mp_menu_item.php
and modify it.
Override parts of page templates
In order to modify parts of template you can also use actions and filters. Or you can override file completely. Note: you should create proper structure:
For example: to override Checkout Cart layout you should copy the following file
wp-content /plugins/mp-restaurant-menu/templates/shop/ checkout-cart.php
paste it to
wp-content /themes/yourtheme/mp-restaurant-menu/shop/ checkout-cart.php.php
and modify it.
If your active theme is Child one the template should be copied to its folder
wp-content /themes/yourtheme-child/mp-restaurant-menu/shop/ checkout-cart.php.php
Templates Search Priority
- Child Theme
- Parent Theme
10 Replies to “Override Templates”
Hi, do the files at /templates/common allow for overrides?
I am trying to override item-taxanomy-header.php and it will not.
Hi is there a way to make a sub-navigation for customers to choose which content from categories they want to see all on one page?
Thank you for this amazing plugin!
Could you please provide some examples using actions and filters?
I’m trying to figure out how to order my menu items by title for example.
In order to change the order of menu items you should edito Order parameter of each menu. Or you may use third party plugin to re-order the menu items using drag and drop.
hi i downloaded your restaurant plugin which is super! which translation plugin is compatible please.. as my site is multilanguage
Unfortunately Restaurant Menu plugin is not multilingual ready and it has not been tested with any content translating solutions.
We’ll review this feature withing further updates. Thanks
Can I display price and item size (sml med lrg) variations?
You can do that with Toppings addon I guess. Please refer to addon page for more details https://motopress.com/restaurant-menu-plugin-addons/toppings-addon/
When I click on add item to cart, it says “Error try again later”. No context or anything.
However, it DOES add it to the card, it just doesn’t give me the normal, “Item added, view Cart thing”. It used it, though.
Please specify whether you modified plugin files or overrode the templates of Restaurant Menu?
Comments are closed.