Jetpack Twitter Widget links open in new window

Glenn Glenn's Blog 1 Comment

Seems strange that links in Jetpack’s Twitter Widget wouldn’t open in new window by default, but if like us you find this annoying and would like to open the links in a new window here is a jQuery snippit that you can add to your page(s) to resolve the problem:-

<script type="text/javascript">
jQuery(document).ready( function($) {
  jQuery('.widget_twitter a').attr('target', '_blank');
});
</script>
About the Author
Jetpack Twitter Widget links open in new window Jetpack Twitter Widget links open in new window 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced Web Developer (WordPress, Webflow, Weebly & Custom), Front-end / Back-end Developer & New Media Specialist, with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries, built up over a number of years.

  • Marlon

    Great! Thank you!