Support » Plugin: GC Testimonials » Link to website can't have name of website?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The plugin does not provide that option. Would you like a hack to get around that?

    Hack yeah! 😉

    Hack yeah!

    😀 That’s my new motto!

    In admin, go to Plugins > Editor then select GC Testimonials. In testimonials.php find this line:

    $display .= '<a href="'.gct_get_website( $testimonial->company_website ).'" target="blank">'.$testimonial->company_name.'</a>';

    and change company_name to company_website. Or replace it with this:

    $display .= '<a href="'.gct_get_website( $testimonial->company_website ).'" target="blank">'.$testimonial->company_website.'</a>';

    To exclude the http:// use this instead:

    $display .= '<a href="'.gct_get_website( $testimonial->company_website ).'" target="blank">'.str_replace('http://', '', $testimonial->company_website).'</a>';

    Note: That’s just for the shortcodes. The widget has a similar line:

    echo '<a href="'.gct_get_website( $testimonial->company_website ).'" target="blank">'.$testimonial->company_name.'</a>';

    that can be modified the same way.

    Works! Thanks!
    Sorry I got back here so late. Bit busy 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to website can't have name of website?’ is closed to new replies.