Hi Jojo,
There are two ways you could do this:
1. Use the ssrp_post_link
filter
This filter is outlined in the Description Page for this plugin. Really all you need to do is create a function applied to this filter hook that adds a target="_blank"
attribute to the opening <a>
tag for each link. Keep in mind your function will need to reconstruct the entire link, including the opening <a>
tag and all it’s attributes (href, target, etc), the link text, and the closing </a>
tag.
2. jQuery
Alternately, you could just add some super simple jQuery that adds the target="_blank"
attribute to each link. There are tons of plugins and tutorials out there to help you with this.
Here’s a handy plugin for adding custom jQuery:
Scripts n Styles
The jQuery you’d need to then add the target attribute to each link would look something like this:
jQuery(document).ready(function() {
// Open Super Simple Related Post links in a new window.
jQuery('.ssrp a').attr("target", "_blank");
});
Hope this helps. Let me know if you have any other questions!