WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: FeedWordPress] I want title link to open in new window (6 posts)

  1. lefturns190
    Member
    Posted 5 years ago #

    Instead of visitors being navigated away from my site when they click the title of syndicated links, I'd like it to open a new window. How is this done?

    I'm using WordPress 2.7 with the iNove theme.

  2. Hedley
    Member
    Posted 5 years ago #

    I haven't tried it, but this plugin might work.

    You could also change your theme code. For instance, in your theme's index.php (or other file that displays posts), find something like this:

    <h2 class="title-1"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    ...and add a target tag:

    <h2 class="title-1"><a href="<?php the_permalink() ?>" target="_blank" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    Depending on your theme, you may have to edit multiple files, of course. The plugin would be simpler, if it works.

  3. lefturns190
    Member
    Posted 5 years ago #

    Hedley: You're The Man! The plugin didn't work, but your "also" did! Thanks! I knew about "_blank" but I wasn't plugging it into the correct spot! Many gratefull thanks from a newbie!

  4. nathaliepelletier
    Member
    Posted 5 years ago #

    thanks Hedley! that worked for me too...can't figure out why that wasn't just a given in the FeedWordPress install instructions.
    cheers
    nathalie

    http://vitiligocover.com
    http://sculptmagazine.com

  5. saroshwaiz
    Member
    Posted 4 years ago #

    Worked for me too Hedley!! Thanks a lot bro!

  6. Treebeard
    Member
    Posted 4 years ago #

    That almost worked :(
    But it opens EVERY title link in a new window now, even the ones that are not syndicated links (part of the blog itself).

    I'm still wondering if there's another workaround that only targets this plugin, so the rest of the blog works normally. I don't want the internal blog posts to open in a new window...

    This plugin still needs work...

Topic Closed

This topic has been closed to new replies.

About this Topic