Support » Plugin: Strong Testimonials » Changing markup of testimonials

  • Resolved nareshdevineni


    Hi Chris, Thank you for such a great plugin. Is there any way that I could change the testimonial markup to blockquotes?

    I am developing a screen-reader friendly theme, So Blockquotes are mandatory for me, Is there any filter that I can use to change the markup?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Chris Dillon


    Thanks, Naresh.

    The strong_view_html filter gets the markup and the view object. For example:

    function this_strong_view_html( $html, $view_object ) {
    	$html = '<blockquote>' . $html . '</blockquote>';
    	return $html;
    add_filter( 'strong_view_html', 'this_strong_view_html', 10, 2 );

    For deeper customization, any template can be copied to your theme. I also have an add-on plugin that adds one custom template that you customize. Let me know if you’re interested in either of those approaches.

    I am interested in the deeper customization ” copying templates in to theme “. Is there any documentation available ??

    Plugin Contributor Chris Dillon


    Not yet, unfortunately, but I can walk you through an example, assuming you’re comfortable copying files and modifying code.

    Step 1

    Create a directory in your theme named strong-testimonials.

    If you copy the default template and don’t rename anything, that will become the new default, overriding the plugin.

    Otherwise, if you copy and rename a template, it will be added to the template list in the view editor.

    Step 2

    To create a template named “Custom” from the default template, create a subdirectory custom in your theme’s new strong-testimonials directory.


    Then copy the desired plugin template files into that. You may only need content.php and content.css, not the form or widget files.

    Step 3

    Edit content.php and change the “Template Name” in the header. This identifies it in the view editor.

    Edit content.css and replace every instance of default with custom. That class must match the subdirectory name.

    Step 4

    Modify the HTML and CSS as you see fit.

    You can create multiple templates by giving each one a unique subdirectory name.

    There are SASS files in the plugin’s templates-scss directory if you are so inclined.

    • This reply was modified 4 years, 1 month ago by Chris Dillon.
    • This reply was modified 4 years, 1 month ago by Chris Dillon.

    Thank you for such a quick reply and detailed walk through. I will implement this and will get back to you if I have any doubts.

    However, I have a small doubt.

    Does the “strong_view_html” filter changes the markup inside widgets?

    Plugin Contributor Chris Dillon


    Yes, it does.

    I am going to use strong testimonials in every theme I distribute. Flexible plugin, High ratings, fast support. Just what I am looking for. Thank you very much 🙂

    Plugin Contributor Chris Dillon


    You’re welcome. I’m honored. 🙂

    This was very helpful, thanks1

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing markup of testimonials’ is closed to new replies.