Add Logo to Ning Bar - (collaborative efforts of Jen and Kris)
Kris of Bikerspost.com wrote tonight and asked how to add his logo to his NingBar. Kris is a Design Client, and a VIP Member of JenSocial. So, I was happy to share this code with him. Ironically I had already written the code for the new design for JenSocial - - coming soon! We discussed behind the scenes and decided we'd share with everyone.
Important Note: If you are using the tip for adding the SignIn Box links to your NingBar, this will not format correctly.
Instructions:
- You will need to size your logo to no more than 30-60 pixels in height. Kris has sized his logo to: 300px width by 52px height.
- Upload your image via a blog or File Manager.
- Copy/paste the image URL.
- Edit the code below, and add your image URL.
- Edit the #xn_bar height to a few pixels more than the height of your logo. See code below within the <style> tag.
- Add ALL of the code to your Custom Code Box via: My Network/Tools/Custom Code
- You will probably need to tweak the padding. Kris added some extra padding to top, like this: <img style="float:left!important;padding-left:10px;padding-top:5px;">
#xn_bar {
height:60px!important;
}
</style>
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("#xn_bar #xn_bar_menu").prepend('<img style="float:left!important;padding-left:10px;" src="yourimageurl">');
}
else {
}
</script>
#xn_bar {
margin: 0 auto;
width: 1002px !important;
}
Be sure to see the awesome tip Kris offered to add logo to your SignIn Box.
Have fun!
Jen and Kris
Replies
Fantastic Jen. Thanks for sharing it.
Best Wishes
Bernard
Glad you like it. I had to edit a few things, so the tip has changed a little.
Best Regards,
Jen
Interesting. So instead of your logo being in the header area, it's in the Ning bar. Some thing to consider.
Thank you and Jen for this fantastic tip!
Hi Kris,
Are you leaving us ?
BikersPost is no more a Ning site, but a SocialEngine site.
plus 1
Great stuff guys. Again.
Awesome tip! Thanks BUNCHES Jen and Kris!
Hi Everyone!
Happy you all like the tip!
=)
Great stuff! Quick question though, is there any way to make the logo clickable? So that it would always take the user back to the homepage (in same way it usually works with the header logo).
Thanks!
You should be able to add a hyperlink. Try this code:
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("#xn_bar #xn_bar_menu").prepend('<a href="http://www.yoursite.com"><img style="float:left!important;padding-left:10px;" src="yourimageurl"></a>');
}
else {
}
</script>
Best,
Jen