• ResolvedPlugin Contributor Chris Dillon

    (@cdillon27)


    Try adding this to your (child) theme’s functions.php:

    /**
     * Remove HTML comments, except MSIE conditionals, from Strong Testimonials output.
     */
    function my_strong_html( $content ) {
    	$content = preg_replace('/<!--(?!\s*(?:\[if [^\]]+]|<!|>))(?:(?!-->).)*-->/s', '', $content);
    	return $content;
    }
    add_filter( 'strong_html', 'my_strong_html', 10, 1 );

    Some page builder plugins inadvertently wrap HTML comments in shortcode output in paragraph tags. The pagination script then interprets those extra paragraphs as regular content. This filter removes those comments.

    https://www.ads-software.com/plugins/strong-testimonials/

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

    (@cdillon27)

    Also make sure each [strong] is enclosed when using multiple [strong]‘s on a page.

    For example, this will not work:

    [strong form]
    ...
    [strong per_page="3]
      [client]
        [field name="client_name" class="name"]
      [/client]
    [/strong]

    But this will:

    [strong form][/strong]
    ...
    [strong per_page="3]
      [client]
        [field name="client_name" class="name"]
      [/client]
    [/strong]

    Plugin Contributor Chris Dillon

    (@cdillon27)

    I removed my HTML comments from the template file in version 1.17.2 and it seemed to solve the problem so that filter above is no longer necessary.

    HTML like <strong>,<em>, links and even <!-- comments --> in the testimonial body are cool.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘If the pagination controls are not working right’ is closed to new replies.