Opens Link in New Page (2 posts)

  1. smokingplatypus
    Posted 4 years ago #

    I'm trying to get my twitter feed to open in a new tab/page, rather than the current page. I'm okay with tweaking some PHP code, as long as it's only a little bit at a time (essentially I have zero php experience). The code is unchanged in it recommended install form:

    <?php if ( function_exists('insert_newsticker') ) { insert_newsticker(); } ?>

    The site is http://pauldwood.info/

    Thanks, and I love the simplicity of the plugin, cheers!


  2. easilyamused
    Posted 4 years ago #

    Hi smokingplatypus,

    I don't recommended changing someones plugin because it would brake/override your changes on update. Since this plugin is not working and the plugin author is MIA i think it would be ok to change some code. you might want to change the plugin name too so you don't loose changes if the author does update it later.

    In ticker.php look around line 134 and swap

    <span class="tickerLink"><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></b></span>


    <span class="tickerLink"><a href="<?php echo $item['link']; ?>" target="_blank"><?php echo $item['title']; ?></a></b></span>

    that should do it.

    James Tryon

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • News-Ticker
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic