WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
[resolved] Related Post link open in new tab (5 posts)

  1. PLR Videos
    Member
    Posted 1 year ago #

    Hello,

    Is there a way for me to have the related post links to open in a new tab when it is clicked on?

    I'd like to have the original post to remain open if the viewer clicks on any of the related posts links.

    Thank you for your help.

    - Steve D.

    Here is a link to my site in case you need to view the related posts section:
    http://www.plrvideodirect.com/

    http://wordpress.org/extend/plugins/contextual-related-posts/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Not without manually editting the code of the plugin.

    Alternatively check out this link which has a bit of javascript code that you can use to open links in a new window.

    http://icode4you.net/use-javascript-to-open-all-links-within-a-certain-div-in-a-new-window

  3. PLR Videos
    Member
    Posted 1 year ago #

    Hello Ajay,

    Thank you for your reply.

    I do not know enough about coding to fully understand the requirements mentioned in the link you supplied for icode4you.net but until your response, I wasn't aware of that site at all. So thank you for that site reference.

    I'm using the Thesis theme and found some code that I was able to add the 'target="_blank"' text to and it works perfectly.

    Your reply didn't directly solve the issue but your reply indirectly solved it by prompting me to continue researching and not just removing your plugin.

    So again, thank you. :-)

    - Steve D.

  4. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Steve just a word of caution, you need to make this change again when you update the plugin to a new version

  5. PLR Videos
    Member
    Posted 1 year ago #

    Hi Ajay,

    Thank you for the heads-up.

    The code I found was to use instead of the plugin.

    This code also uses categories instead of tags which for my needs, works much better.

    If in your next update you include a way to have the links open in a new window/tab and maybe also have a way to choose either tags or categories, then I might re-install the plugin.

    Again, thank you for your reply.

    - Steve D.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic