Real Testimonials Pro

  1. Home
  2. Docs
  3. Real Testimonials Pro
  4. How To Override Templates

How To Override Templates

Real Testimonials Pro supports template overrides from a theme. That means you can customize the appearance of the plugin-specific designs. The overridable files are located in the templates folder. For your convenience, we have created a hierarchy-

testimonial-pro/
├── src
│ ├── Frontend
│ │ ├── views
│ │ │ ├── templates  
│ │ │ │ ├── form/
│ │ │ │ │ ├── company-name.php
│ │ │ │ │ ├── email.php
│ │ │ │ │ ├── full-name.php
│ │ │ │ │ ├── image.php
│ │ │ │ │ ├── location.php
│ │ │ │ │ ├── phone.php
│ │ │ │ │ ├── position.php
│ │ │ │ │ ├── rating.php
│ │ │ │ │ ├── recaptcha.php
│ │ │ │ │ ├── social-profile.php
│ │ │ │ │ ├── submit-btn.php
│ │ │ │ │ ├── testimonial-cat.php
│ │ │ │ │ ├── testimonial-content.php
│ │ │ │ │ ├── testimonial-title.php
│ │ │ │ │ ├── validation-msg.php
│ │ │ │ │ ├── video-url.php
│ │ │ │ │ ├── website.php
│ │ │ │ ├── testimonial/
│ │ │ │ │ ├── after-testimonial.php
│ │ │ │ │ ├── before-testimonial.php
│ │ │ │ │ ├──	 client-email.php
│ │ │ │ │ ├── client-image.php
│ │ │ │ │ ├──	 client-location.php
│ │ │ │ │ ├── client-name.php
│ │ │ │ │ ├── client-phone.php
│ │ │ │ │ ├──	 client-website.php
│ │ │ │ │ ├── company-name.php
│ │ │ │ │ ├── content.php
│ │ │ │ │ ├── rating.php
│ │ │ │ │ ├── social-profile.php	
│ │ │ │ │ ├── testimonial-date.php	
│ │ │ │ │ ├── title.php	
│ │ │ │ ├── theme/
│ │ │ │ │ ├── theme-one.php
│ │ │ │ │ ├── theme-two.php
│ │ │ │ │ ├── theme-three.php
│ │ │ │ │ ├── theme-four.php
│ │ │ │ │ ├── theme-five.php
│ │ │ │ │ ├── theme-six.php
│ │ │ │ │ ├── theme-seven.php
│ │ │ │ │ ├── theme-eight.php
│ │ │ │ ├── filter.php
│ │ │ │ ├── form.php
│ │ │ │ ├── grid.php
│ │ │ │ ├── list.php
│ │ │ │ ├── masonry.php
│ │ │ │ ├── pagination.php
│ │ │ │ ├── popup.php
│ │ │ │ ├── preloader.php
│ │ │ │ ├── section-title.php
│ │ │ │ ├── slider.php
│ │ │ │ ├── thumbnail-slider.php

So all the files mentioned above can be overridden from your theme directory.

Steps to override a template of Real Testimonials Pro:

  1. Make a folder named testimonial-pro in your active theme. (It is better to create the folder in your active child theme)
  2. Create another folder inside the testimonial-pro and name it templates.
  3. Copy the template you want to override from the templates folder of the plugin.
  4. Paste the template file in the testimonial-pro > templates folder inside your active theme.
  5. Now open the file in a text editor and edit as you like.
  6. Now reload the page from the browser and see the changes you made.

Copy the file from the directory,

/wp-content/plugins/testimonial-pro/src/Frontend/views/templates/section-title.php

and paste it into your child theme directory

/wp-content/themes/twentytwenty-child/testimonial-pro/templates/section-title.php

Then modify the file content as you want.