I've seen a couple of posts asking how to get the feed article link to open in a new window, and that it's not working properly. Can someone provide code that works? I'd love to get this working on my site.
Thanks!
I've seen a couple of posts asking how to get the feed article link to open in a new window, and that it's not working properly. Can someone provide code that works? I'd love to get this working on my site.
Thanks!
What type of feed do you have? (How does it coded?) I don't know which type of feed code/content you're using (Flash, HTML, etc.) I've always used HTML because I can customize it manually. Even though the "target" attribute is being phased out in the newer versions of HTML, I still use it and customize my items like this, adding the "target" in the link tag:
<li><a href="%URL%" target="_blank">%TITLE%</a><br/>%MONTHLONG% %DAY%, %YEAR%</li>
It's working for me, thus far.
That's a correct answer:)
I am using HTML and will try your suggestion. Thanks!
What can I do when using Javascript ?
Ton, if you use JavaScript code (for html format), you have to go to your digest, and:
1) choose "Digest Design"->"HTML"->"Edit template HTML manually".
2) find in the Per-Item Template section text "<a href="%URL%">%TITLE%</a>"
3) add target="_blank"
into <a />
tag
It'll be smth like this: <a href="%URL%" target="_blank">%TITLE%</a>
All news will be opened in new window.
Ton, that's the correct answer if you use JavaScript code for html format.
You must log in to post.