WordPress.org

Forums

Testimonials Widget
[resolved] open URL in new window (8 posts)

  1. rdw
    Member
    Posted 2 years ago #

    Hi there,

    nice plugin!!
    How can I let visitors open the URL in a new window?
    Can I add target="_bank" somewhere?

    http://wordpress.org/extend/plugins/testimonials-widget/

  2. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for the compliment. At this time, there's no option for the blank target. As such, you can edit the testimonials-widget.php file to do where the link is created.

  3. rdw
    Member
    Posted 2 years ago #

    Thanks Michael for your quick response.
    How do I do that: edit the testimonials-widget.php file;
    what do I put in it, and where?

    Kind regards,
    Riet

  4. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    Wherever you see the make_clickable() wrap it with links_add_target(). So…

    make_clickable( $testimonial['source'] )

    becomes

    links_add_target( make_clickable( $testimonial['source'] ) )

    I pulled the links_add_target wrap idea from grokking http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/formatting.php#L0

  5. rdw
    Member
    Posted 2 years ago #

    Works!
    Thanks!! :-))))

  6. usaproducts53
    Member
    Posted 2 years ago #

    hi Michael, I want to know if I can make this widget public for anyone to put a testimonial. Currently it seems only I as an administrator can put a testimonial. Any help on this? Thanks alot!!

  7. Michael Cannon
    Member
    Plugin Author

    Posted 2 years ago #

    Buy Premium for user supplied testimonials.

  8. usaproducts53
    Member
    Posted 2 years ago #

    thanks Michael :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Testimonials Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic