I would like to have an announcements section on my main page, similiar to whats on here. I have a forum section which is our news desk and would like the feed to come from that. I create the rss feed no problem but I would like it to open within the site rather than it opening a new window. Nings one opens a new window also so is this not possible to do ?

Tags: forum, new window, rss

Views: 97

Reply to This

Replies to This Discussion

Hi John,

I see what you mean and it is possible using jQuery/DOM. You can modify the target attribute from _blank (new window) to _self (current tab/window)

Add this one liner to your custom code, make sure to enclose it with the <script>tags

x$(".module_feed a").attr("target","_self");

 

Tested working. Hope this helps.

This is great, it works. Thanks Ron for sharing!

sure thing!

I added it to my custom code with the <script></script> code but it does not work. Still opens in new window ..

Go to www.boxingsocialist.com and on the left hand side, click on any of those rss feeds and you will see it open in a new window. Any other ideals?

Try this:

<script>
$(".module_feed a").attr("target","_self");
</script>

RSS

Latest Activity

Allison Leahy replied to soaringeagle's discussion '3.0 feature request'
"Thanks. I'll make sure this is filed as a feature improvement for 3.0."
38 minutes ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Ha!  Nevermind.  Suddenly it's back to normal again.  Gremlins in the hardware,…"
46 minutes ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Hey SP is your slide still running alright?  Came back from dinner and saw this.  idk if…"
1 hour ago
FedMedic replied to soaringeagle's discussion '3.0 feature request'
"+1"
4 hours ago
Kos replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"It's a glitch on Ning's end; plain and simple"
5 hours ago
John Bizley replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"Thanks Riccardo, it took a bit of moving the mouse about to find it but my mouse does change to the…"
5 hours ago
Riccardo Rossini replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"John, actually the button is only hidden, more or less you'll find it here your pointer will…"
5 hours ago
Kos replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"Even a photo preview would be wonderful so we're certain we're selecting the right…"
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service