Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    This is now possible starting in version 2.1.1. You can add this filter to your functions.php file and modify the $more_text variable to whatever you need.

    function hg_testimonial_rotator_the_excerpt( $html, $limit )
    {
    	$more_text = '... <a class="read-more" href="'.get_permalink(get_the_ID()).'">Read Full...</a>';
    	return wp_trim_words(get_the_excerpt(), $limit, $more_text);
    }
    add_filter('testimonial_rotator_the_excerpt', 'hg_testimonial_rotator_the_excerpt', 10, 2);
    Thread Starter leblancj2

    (@leblancj2)

    Do I put the code into this file: testimonial-rotator/frontend-functions.php
    If that is the correct file, where to I insert the code?

    Can I set the read more link to go to a certain page?

    Plugin Author Hal Gatewood

    (@halgatewood)

    Add this to the functions.php file found in your theme.

    /wp-content/themes/your-active-theme/functions.php

    Just put it at the end of that file.

    Thread Starter leblancj2

    (@leblancj2)

    What do I add to this [testimonial_rotator id=”22431″ show_size=”excerpt”] to get it to show up?

    Plugin Author Hal Gatewood

    (@halgatewood)

    Nothing needs to be done to the shortcode once that code has been added.

    Is your text long enough to need to be chopped? Try setting it to something really low at say 10 words and see if the button appears.

    Thread Starter leblancj2

    (@leblancj2)

    Thank you for the help! I saw that it was working on the longer testimonials and not the shorter ones. I switch out some of the shorter ones with longer ones to have the read more link up.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Read More to Rotator’ is closed to new replies.