WordPress.org

Ready to get started?Download WordPress

Forums

News-Ticker
Opens Link in New Page (2 posts)

  1. smokingplatypus
    Member
    Posted 3 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!

    http://wordpress.org/extend/plugins/news-ticker/

  2. easilyamused
    Member
    Posted 3 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>

    to

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

    that should do it.

    James Tryon
    http://easilyamusedinc.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic