IMPORTANT: As per update 1.2.6 you should copy the template files inside the “files-for-themes” to your theme directory.
LazyEater is a multi-vendor restaurant network plugin. To get this kind of plugin to work on WordPress, there should be a (Theme + Plugin) efforts. Thus, LazyEater was built to only work on themes that support it like Frozr WP Theme that natively supports LazyEater, you can get it for free from here. But due to many requests we got from customers to support other themes, we modified the code of LazyEater 1.1.4 to work on other themes, you only have to prepare the homepage and add some WooCommerce templates. Follow the steps below to get this done perfectly while we are assuming that you are familiar with WordPress and CSS.
In this article we will make the naive WordPress Twentyfifteen theme support LazyEater. Before we start make sure LazyEater and WooCommerce plugins are installed and activated, both plugins can be installed from the WordPress plugins repository, also make sure that Twentyfifteen is activated.
Creating the LazyEater homepage.
The lazyEater homepage includes the following sections:
- The Food/Restaurants advance search section.
- The latest restaurants section.
- The top selling items.
We will use those sections shortcodes to add them to the Twentyfifteen home page.
- Start with creating a new WordPress page with “Home page” as title and past the above shortcodes in the page content and save the page.
- Create a new page with “Blog” as title and leave other fields empty and save the page.
- You should now use”Home page” page as your Front page and the “Blog” page as your posts page. Go to ‘Settings’ => ‘Reading’ and change the ‘Front page displays’ option to ‘A static page’ . Select “Home page” as your front page and “Blog” as your posts page and save settings.
The home page now should look like this:
As you can see that Twentyfifteen adds some styles to the default WordPress page, preventing a native LazyEater home page layout. In case your theme also add styles to pages, follow these steps:
- Edit the “Home Page” page.
- From the Page Attributes meta-box select the “Frozr White Template” and Save the page.
The home page now should look like this.
Adding LazyEater Widgets
LazyEater 1.1.4 adds to widgets:
- User Location Widget.
- Admin/Seller Widget.
We will add those two widgets to the theme sidebar.
The theme sidebar now should look like this:
Adding WooCommerce Templates
The last step in this is to override some WooCommerce templates by adding some custom templates. WooCommerce Templates we will override are:
We will create a child theme for Twentyfifteen and add those templates:
You can get all those templates from here.
Add theme support
After all the above steps are done, you can now tell LazyEater that this theme supports you! by adding a one line of code to the theme’s child theme function.php file.
// Add support for Frozr LazyEater plugin
add_theme_support( 'frozr-lazyeater' );
All done, We have made the native Twentyfifteen theme now support LazyEater. You will note that LazyEater is working fine but maybe looks not fine, this is because LazyEater pages will come with minimum css styles, you should use some css styles to get LazyEater fully integrated with your theme. Note that any css styles should be added to the child theme so you can be safe of any future updates for the theme you are using.