Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23309

    I am using Quick Page/Post Redirect Plugin to redirect my portfolio post to other websites. The problem is that the pages are not being opened in a new window/tab when the link is clicked on. I asked the developer of the plugin and they mentioned its a theme issue. The theme is not forcing the _blank in those links. Please let me know how this can be fixed.

    Thank you in advance

    danyelclothing.com

    #119341

    Hi,

    Edit loop-portfolio.php then find this code.

    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";

    Replace it with

    echo "<a target='_blank' href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";

    Also, change this

    echo '<a class="more-link" href="'. get_permalink().'">'.__('Read more &rarr;','avia_framework').'</a>';

    to this

    echo '<a target="_blank" class="more-link" href="'. get_permalink().'">'.__('Read more &rarr;','avia_framework').'</a>';

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Redirect Plugin Problem’ is closed to new replies.