Current status of the Ning Platform is always available on the Ning Status Blog.

FORUM

NC for Hire

Wanna know how to make all external links on your Ning open in a new window, everytime?  We'll here's how you do just that.

 

Add this to your custom Code box (if you're Ning Plus or Ning Pro)

 

<script type="text/javascript">
 jQuery(document).ready(function(){
jQuery("a[href*='http://']:not([href*='http://yourdomain.com'])").attr("target","_blank");
jQuery("a[href*='https://']:not([href*='https://yourdomain.com'])").attr("target","_blank");
});

</script>

 

 

Don't forget to change yourdomain.com  with YOURDOMAIN.COM

 

 

 

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Replies

  • NC for Hire
    Thanks a lot, JFarrow this just may come in handy for something I have in mind.
  • that's a great tip. I use as similar code and works a treat. However, do you think there is a way to "exclude" specific external links? for example, can you force a specific external link to open in the same widow?

     

    thank you!

  • NC for Hire

    @spyro  hmmm   i'll have to think on that one a minute

     

    @Garfield...no problemo homey

    • Thank you ... the _self command is not working.. please let me know if you come up with something.
  • Thank you. This is awesome!
  • Oh my God!  This is cool!  Just installed it on my site and I like it very much!  Ben
  • Great man, thanks a bunch.  Works perfect.

     

    Seth

    www.moviesamongfriends.ning.com

  • AWESOME!  I have been looking for this solution forever....
  • Hey - you know what I just found out that may be an issue for everyone? Every link will pop open a new window, meaning if a user clicks on a Blog post, or Forum post it opens it in a new window. May not be the best user experience though.

    Any possible fix for this maybe? I dunno!
  • thanks so much!!!!!!!!!!
This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Scott Bishop replied to Scott Bishop's discussion
How to Change the Navigation Font that is Not Listed
"Thanks Bizz, but it still didn't do anything. "
3 hours ago
Bizz replied to Scott Bishop's discussion
How to Change the Navigation Font that is Not Listed
"It looks like you have a semi colun before the important which may stop it working, here in bold
na…"
4 hours ago
Scott Bishop replied to Scott Bishop's discussion
How to Change the Navigation Font that is Not Listed
"Thanks! ...but it's not working. 
Perhaps I'm putting your Design Studio code in the wrong spot. I…"
5 hours ago
⚡JFarrow⌁ replied to Scott Bishop's discussion
How to Change the Navigation Font that is Not Listed
"Yes.. go to the page for the font
choose your font weights
add this to the top of Custom Code
<link…"
7 hours ago
Somos Más, CAROL FOSTER, Hyacinthe Romain and 1 more joined Ning Creators Social Network
10 hours ago
Luca Boscardelli, James Pearson, Allen Williams and 2 more joined Ning Creators Social Network
yesterday
Ana Massien updated their profile photo
Saturday
Ana Massien updated their profile
Saturday
This Is bully replied to Anastasia_Ning_Support's discussion
Why should I migrate?
"32000 member You can asked for $1 in donation and keep it running."
Saturday
Fashion replied to Anastasia_Ning_Support's discussion
Why should I migrate?
"My site has a bit over 32,000 members. I don't want to close the site, but might have to if prices…"
Friday
Dax Carlisle and Julius Manninen joined Ning Creators Social Network
Friday
Scott Bishop posted a discussion
Does anyone know how to change the font for the navbar to a font that is not listed for Ning 2.0? I…
Friday
More…

Meanwhile, you can check our social media channels