WordPress.org

Forums

Testimonial Rotator
Change stars to paw (font awesome) (4 posts)

  1. wendyvw
    Member
    Posted 1 year ago #

    Great plugin, works flawlessly with the site I have it installed on. I'd like to change the stars to paws, and it looks like the stars are pulling from font awesome (paws are available via font awesome). Is there a way I can make that change?

    Thanks

    https://wordpress.org/plugins/testimonial-rotator/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 1 year ago #

    This will be possible in our next release. Should go out this afternoon. I'll post the code on how to achieve it after it launches.

  3. wendyvw
    Member
    Posted 1 year ago #

    Any chance you've had the opportunity to post the code?

    I appreciate it.

  4. Hal Gatewood
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, unfortunately it didn't make the last release. But I just put through 2.0.5 that has the ability.

    After you update your plugin you'll need to add the follow code to your functions.php file in your theme:

    function tr_stars( $icon, $template_name, $id )
    {
    	return "fa-paw";
    }
    add_filter( 'testimonial_rotator_star' , 'tr_stars', 10, 3 );

    For anybody else who reads this, the 'fa-paw' can be changed to any of the FontAwesome icons codes: http://fontawesome.io/icons/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Testimonial Rotator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.