By default the testimonials are added in the backend via the Testimonials post type but do to customer requests we’ve created a little extension that will allow you to display a form anywhere on your site so people can submit their testimonials online and it creates a new “draft” testimonial on your site.
Note: The plugin will be uploaded to WordPress.org so you can download it here in the meantime 😉 And just like the theme if you have any issues or questions be sure to post them in the ThemeForest comments.
Simply use the shortcode [testimonial_form] anywhere on your site to display the form which should look as following on your site (if you are using the WPBakery page builder we recommend using the Total “Shortcode” module):
The following parameters are available in the shortcode:
Parameters used to disable fields from the front-end. Set any one of these parameters to something besides “on” to disable.
Parameters used to alter the default text for the various form fields
[testimonial_form label_title="Testimonial Title"]
- rating_max: Max number for the rating, default is 5
- content_rows: Number of rows for the content textarea box
- content_cols: Number of columns for the content textarea box
- submit: Custom submit button text
- success_message: Custom success message (set to empty to disable)
There are a couple filters available for tweaking things via a child theme.
- Use the “ttf_css” boolean filter to enable/disable the custom CSS added to the site for the form (default is true).
- Use the “ttf_post_content_required” boolean filter to make the testimonial content field required or not (default is true).
- Use the “ttf_new_status” filter to set the desired post status when a testimonial is submitted (default is pending).