Scroll Top

Overriding Templates

Table of Contents

Caution: For Advanced Users Only

There is a templating system available in Breview – Better Review for the WooCommerce plugin. With this feature, you have the ability to make almost any changes to the template files and change how the review form, review list, and review list header are displayed. In this article, we will discuss the available templates in Breview and how you can make changes to them.

How to override a template?

You can find all the template files in the /breview/templates/ folder in the plugin. To override a specific file, you simply need to copy the file and paste it into the same directory structure at /wp-content/themes/your-theme/breview/.

For example, if you need to override the template file located at /breview/templates/emails/completed.php, then you need to copy this file and paste it at /your-theme/breview/emails/completed.php. The same rule applies for overriding any other template files.

For your information:

  • The template files located at /breview/templates/emails/ control the emails sent by Breview
  • The template files located at /breview/templates/header/ control the review list header designs
  • The template files located at /breview/templates/order/ control how the add review form and submitted review should look like.
  • The template files located at /breview/templates/product/ control how things should look on the product pages.

More information about overriding a template and popular customizations will be added in future. If you need any custom template overriding services or any other web development related services, you can send us the details from the Services page