Quick Page/Post Redirect Plugin
[resolved] [Plugin: Quick Page/Post Redirect] Link doesn't open in new tab or window (5 posts)

  1. katherholt
    Posted 5 years ago #

    http://peony.site5.com/~villaric/ - there is a tab on the nav bar called 'test' - but it opens in the same tab. I can't seem to make it open in a new tab or window using Firefox or IE8.

  2. Don Fischer
    Posted 5 years ago #

    can you tell me what theme you are using?

  3. katherholt
    Posted 5 years ago #

    Theme created by Artisteer - I built the theme as a start from this program. If you would like to see the dashboard, I can give you a login. Thanks.

  4. kilerb
    Posted 4 years ago #

    Any luck on this? Same prob here...


  5. Don Fischer
    Posted 4 years ago #

    If your links are inside of a post/page (not in the menu or page list), then it is most likely attributed to the way the template creates your permalink. If it is using hard-coded anchor tag and the_permalink() function, it will not open in a new window because the template is not having the entire link created so the new window portion can be created if needed.

    One work around would be to edit the theme template file like the example below.
    Add this inside the loop before the call to the_permalink():

    $ppr_newwin_text = '';
    $ppr_nofoll_text = '';
    $ppr_active = get_post_meta($post->ID, '_pprredirect_active', true);
    $ppr_newwin = get_post_meta($post->ID, '_pprredirect_newwindow', true);
    $ppr_nofoll = get_post_meta($post->ID, '_pprredirect_relnofollow', true);
    if($ppr_active == '1'){ //if active
                    $ppr_newwin_text = ' target="_blank" ';
                    $ppr_nofoll_text = ' rel="nofollow" ';

    And this inside the anchor tag for the permalink:

    <?php echo $ppr_newwin_text.$ppr_nofoll_text;?>

    So it would look SIMILAR to this (depending on your template):

    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"<?php echo $ppr_newwin_text.$ppr_nofoll_text;?>><?php the_title(); ?></a>

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Quick Page/Post Redirect Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic