S'up bitchez?

Here's a little tip to get some social icons inserted into your navigation bar so it looks something like this:


First off you need to find the div ID of the final nav tab in your navigation menu. You can do this using Firefox Firebug (great tutorial here from Elson Tan). In the example used in the code below, the div id of the tab is #xg_tab_xn47 but yours could be Members: #xg_tab_members or Blogs: #xg_tab_blogs, or whatever.

Once you know the tab div ID, replace the green code below with yours.

The red code will also need changing depending on your urls and choice of wording.

Once you've done that, insert the code into your custom code box and you're done.


<script type="text/javascript">

x$('#xg_tab_xn47').after('<li style="padding-left:10px;
border:none;"><a style="font-family:georgia; font-style:italic;">Follow</a></li><li
style="border:none; margin-right:-10px;"><a target="_blank" href="http://yourTwitterURL"><img
src="http://api.ning.com:80/files/ywYTf-A2qoHcPAP2xKu6lV3fJASg8EqMlFsVBzLT7A1Q1T7FPnm2lFgdn4oi8FAPdtzPbnwVDyH1920QA03rPnHvdmL-*B4L/twitter.png"
width="20" /></li><li style="border:none; margin-right:-10px;"><a
target="_blank" href="http://www.yourLinkedInURL.com"><img
src="http://api.ning.com:80/files/T6RCS6czGyI9o7wd39hfx8ByT8d30BOR-Zt3bJZ67PhTyzvWZZSPrmWaJa4G4WoGn4eZkC5gcqMXCuQXvc5uX6HDV1AGNvPR/linkedin.png"
width="20" /></a></li><li style="border:none; margin-right:-10px;"><a
href="https://yourGPLUSURL" style="text-decoration:
none;"><img src="https://ssl.gstatic.com/images/icons/gplus-32.png" style="border:
0;" height="20" width="20" /></a></li><li style="border:none;
margin-right:-10px;"><a target="_blank" href="http://www.facebookURL"><img
src="http://api.ning.com:80/files/2I*LOCKMydQDkx5QHW8svg00L9MtKt5gbAmDw4fsnb*OwbFi8scfF*klzN5iLScD5FKJGbSF2asslKp1Y3Aok4YK8AH7l5Pp/facebook.png
width="40" /></a></li>');

</script>

This tip will only really work on networks that don't have many tabs and sadly i'm only using it on a development site at present so don't have a working version to show, but i thought i'd drop it in for anyone who could use it.

Script attached as well

Cheers

SP

More tips on my profile page.

ps, further tip, if your Manage Network tab is cluttering things up, hide it by putting this in the advanced css section:

#xg_tab_manage{
display:none;
}

Tags: Professional Ning Themes, Purple Pro Theme, Social icons, Theme for Professional Network

Views: 1422

Attachments:

Reply to This

Replies to This Discussion

Word. This sounds wonderful. Interested to hear how others use this one. Thanks for sharing!

Sp

GREat tip. HOw can i add images like u added in Tabs. thats innvoative.. Community Blogs.

One for later down the line once I've relaunched my site. I do believe that superstar John of motorhomes fame has already posted something similar somewhere, but not 100% sure
SP

Wasn't me.  

Thanks for the tip!

LMAO!!! OMG Sp haha, your intro...oh and great post! thank you! Now if only I could find a good translation widget that doesn't mess up my network i will put up there too. I'll be saving this awesome post.

It's not showing up on my network and I'm sure I did everything right. And yes it is in the Custom Code Box

Hi, did you copy the code from the attachment ? There are often issues with code getting broken when pasted on discussions hence the attachment. Also, have you definitely located the correct div id of the final tab?
SP

looks like you have got the right tab id but your code is broken over several lines. try the code in the attachment :-)

It worked perfectly when I copied via the attachment! Thank You Superstar :)

great. Cheers, SP

Hi, I've used attachment code but my last tab is 'Admin' so hidden from public view - I've tried using both the Admin tab code and the final public code 'Help' but this wonderful thing doesn't appear :-/  Also tried making nav shorter...would the hidden Admin tab be causing this?

http://members.card-making-world.com

(and I removed LinkedIn code)

your final 'Help' tab has a class name of xg_tab_xn3 so if you're using that (where the green code is in my example) and the code as attached (not pasted above) then it should work.

SP

RSS

Latest Activity

Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Thanks!"
6 minutes ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Let me send you a friend request so I can message you rather than take this thread more off-topic."
9 minutes ago
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"So many folks were asking the same questions that I thought actually showing them the basics of the…"
1 hour ago
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
"Nope, had all the answers: "it's not a bug", "it is a bug and has been…"
2 hours ago
Larry Matthews replied to Larry Matthews's discussion 'Photos'
"www.dismyhood.com I need to enlarge images on mouseover, on the activity feeds. There is a feed for…"
3 hours ago
Fabio replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"F A N T A S T I C !!!!! well done guys"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Hi Allison, I have a Client who needs the Search feature. Any updates? I don't see any Search…"
3 hours ago

NC for Hire
SweetPotato replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"not consistently for all browsers, think SE tried it with mixed results. SP"
3 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service