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: 102

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

Kos replied to Julian Hughes's discussion 'Network issues'
"I wonder if Allison's still around.  Your site is loading for me on FF 21.0. My site is…"
4 minutes ago
Julian Hughes replied to John's discussion 'Page disappeared'
"Anyone know if something is wrong with Ning server. My network swagfriends.com is slow too. "
24 minutes ago
John replied to John's discussion 'Page disappeared'
"The redirection indicates that some program logic has it flagged since I can see it when logged-in,…"
49 minutes ago
John replied to John's discussion 'Page disappeared'
"Now it redirects…"
52 minutes ago
John replied to John's discussion 'Page disappeared'
"I updated it today."
56 minutes ago
Kos replied to John's discussion 'Page disappeared'
"Did you add or change anything on the page today?  That's just so strange."
1 hour ago
Kos replied to John's discussion 'Page disappeared'
"Page not found for me (both Firefox 21.0 and IE).  I had an issue yesterday where I had a page…"
1 hour ago

NC for Hire
SweetPotato replied to Steve Jaques's discussion 'I'm About to contact Ning: Creator feedback would be really helpful before I do.'
"What is your community focused on? If it is blogging then I would say go with Ning 3.0 SP"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service