• Resolved VDmitryV

    (@dmitryvelichko)


    Hello,

    I’m using the Strong Testimonials plugin version 2.28.4 and having an issue customizing the “Read More Testimonials” link that is placed below the list of the testimonials in different views.

    It is rendered in function wpmtst_read_more_page() (includes/functions-template.php line 127), and final output needs additional filter to make it customizable.
    Instead of

    
    echo sprintf( '<div class="%s"><a href="%s">%s</a></div>', $classname, esc_url( $permalink ), $link_text );
    

    there should be something like

    
    echo apply_filters('wpmtst_read_more_page_output', sprintf( '<div class="%s"><a href="%s">%s</a></div>', $classname, esc_url( $permalink ), $link_text ));
    

    That way the final out can be customized in a website theme.

    Additionally the “Read More” link itself can have a CSS class customized using filters with code like that:

    
    $link_class = apply_filters( 'wpmtst_read_more_page_link_class' , 'readmore-link');
    

    I hope that changes will be valuable for StrongTestimoials users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • anonymized-13171256

    (@anonymized-13171256)

    In that function there is a filter on the link text, the permalink and the class name.

    How else do you intend to modify it?

    Thread Starter VDmitryV

    (@dmitryvelichko)

    To be exact – giving a CSS class to the anchor tag like this:

    
    <a class="button">TEXT</a>
    
    anonymized-13171256

    (@anonymized-13171256)

    That’s a good idea. I’ll add it to the request list but the plugin is currently on feature freeze.

    Until then, while not ideal, you can copy the button CSS and target the anchor like this:

    .readmore-page a { ... }

    Thread Starter VDmitryV

    (@dmitryvelichko)

    Glad to hear that idea will be implemented later.
    Thank you for your suggestion.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘“Read More Testimonials” customization’ is closed to new replies.