• Hi,

    FAQ 48 seems to say I can change the HTML output by editing “testimonials_widget_testimonial_html”, but I’m not sure where to find this to make the needed changes (or for that matter, exactly how to make the needed changes… I’m not very familiar with PHP).

    To be more specific about what I’m trying to do, I want to put the .title span before the blockquote instead of after. It should look like this:

    <a class="more-link" title="Complete testimonial by Scott" href="https://localhost/wordpress/testimonial/scott/">
    <span class="title">Title of the testimonial</span>
    <blockquote>
    ...(testimonial copy)...
    </blockquote>
    <div class="credit">
    <span class="author">Scott</span>
    <span class="join_title"></span>
    
    </div>
    </div>

    Thanks!

    https://www.ads-software.com/extend/plugins/testimonials-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Cannon

    (@comprock)

    See Testimonials_Widget::get_testimonial_html for default processing and giving you an idea of how to rearrange the content as you need via the testimonials_widget_testimonial_html filter.

    If you need development assistance, please contact me via https://aihr.us/contact-aihrus/.

    Thread Starter cbiagi

    (@cbiagi)

    What file do I need to edit? I opened testimonials-widget.php in Dreamweaver and searched for “Testimonials_Widget::get_testimonial_html” but nothing comes up. Am I looking in the right file? If you can point me to the code line you’re referring to (the default that I’m supposed to look at for an example of what to change), I think I can figure it out.

    Thanks

    Plugin Contributor Michael Cannon

    (@comprock)

    Look in testimonials-widget.php at line 732 for public function get_testimonial_html.

    Don’t edit the plugin code

    Use a filter per FAQ 48 in your theme’s functions.php file to override. Otherwise, your changes will be LOST on the next update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘(premium) Where / how do I edit "testimonials_widget_testimonial_html"?’ is closed to new replies.