Support » Plugin: RestaurantPress » Overriding Plugin Files

  • Resolved cloudmerchant


    Hi there. I love this plugin so far, but I have a minor issue. In your documentation it says that you can override layouts if you place the file inside the same folder structure within your child theme, but this isn’t working for me. I’ve got the project on my local development environment, so I can’t really pass you a URL for troubleshooting.

    Am I reading your instructions wrong, or doing something wrong? I’d love to know.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • sanzeeb3


    Hello cloudmerchant,

    Overriding plugin file is fine from our side. Suppose, you need to edit one column layout,
    -> Go to wp-content/plugins/restaurantpress/templates/layouts/one-column.php
    -> Copy this file.
    -> Go to wp-content/themes/your-choosen-theme/ and create a folder restaurantpress and inside this folder create folder layouts.
    -> Paste the copied one-column.php file here and edit to your requirements. This file will override the plugin’s file.

    If you still have an issue, let us know.

    WPEverest Support

    For anyone having this issue:

    It worked when I skipped an interior folder. So my structure is childtheme/restaurantpress/layouts – skipped the /templates/ folder between /restaurantpress/ and /layouts.

    Plugin Contributor Shiva Poudel


    Hello @cloudmerchant,

    Yes you have to skip /templates/ directory and that directory only resides in plugin not in a theme. To edit one column layout from your theme your file structure should be like yourtheme/restaurantpress/layouts/one-column.php not the yourtheme/restaurantpress/templates/layouts/one-column.php.

    If anything is not going well for this template structure you can report it here:

    Shiva Poudel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Overriding Plugin Files’ is closed to new replies.