Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #985747
Twitter widget not linking
Closed

Comments

  •  2
    Jody started the conversation

    This is more to let you know of a problem in the theme - GemTheme Elements Widgets.php is crawling the post looking for "http://" when twitter now posts using 'https://' so the links are not being prepended with the link. 

    The plugin file needs to be updated so that the widget now shows the link. Even the footer of the demo site is broken.

  •  7,092
    Oliver replied

    HI!

    Sorry for delay.

    Pls. replace lines 531 and 532 with next code:

    $latestTweet = preg_replace('/https:\/\/([a-z0-9_\.\-\+\&\!\#\~\/\,]+)/i', ' <a href="https://$1" target="_blank">https://$1</a> ', $latestTweet);
    $latestTweet = preg_replace('/@([a-z0-9_]+)/i', ' <a href="https://twitter.com/$1" target="_blank">@$1</a> ', $latestTweet);

    In wp-content/plugins/thegem-elements/inc/widgets/widgets.php


    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver