Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
First, I have to give credit to my friend edie2k2 for peaking my curiosity on adding a unique background to a new "Custom Page" on Ning 3.0. This tip will help you style a Ning 3.0 Custom Page, since Ning hasn't yet (as of 4/6/2013) provided unique CSS selectors to differentiate between "Custom Pages", and hasn't given us our Custom Style box, like on "Pages" for Ning 2.0. I do believe Ning will offer this in the future.
I wouldn't have thought to try this. Thanks Edie!
Until Ning offers us an area to add Custom CSS for our "Custom Pages" - - How to Style a Ning 3.0 Custom Page with Linked Style Sheet / CSS, like adding a Custom Page Background Image:
You will need to know how to:
Short Instructions for Advanced Users:
Instructions for Less Advanced Users - (includes How To Create your CSS File):
Example - Create a CSS Style Sheet to Add Background Image to Ning 3.0 Custom Page:
The example below will show you how to create CSS to add add a background image to your specific Custom Page.
Example with no repeat and scroll:
body {
background:URL ("yourbackgroundimage.jpg") no-repeat scroll 0 0 transparent!important;
}
Another example with repeat and fixed:
body {
background:URL ("yourbackgroundimage.jpg") repeat fixed 0 0 transparent!important;
}
This code would be saved to a CSS file.
Enjoy!
Jen
Tags:
I had a ball today and learned something. You know your stuff and I appreciate you. We all do!
Thank you Jen! ♥
Jen I have tried all week, reading it over and over again and I still cannot get this one right. I know you've tried to make it as step-by-step as possible. Are we literally uploading twice to File manager? First with the original jpg image and then, once that URL is in notepad, changing the .jpg to .css (saving to Notepad) and upload that a 2nd time in File Manager? Then using that URL to place within the code and HTML content box?
You totally lost me also at the end as well on the "body" part.
Seriously fighting back the tears at this juncture b/c I had a minor stroke some years back and I almost wonder if my inability to comprehend and execute tasks is re-emerging. Oh how I hope not. It's so incredibly annoying, I cannot tell you.
I wish Ning would just make it easier to select a diff. background for pages; period. This is nutty (or it could just be my brain function).
I even tried the code you gave Edie on page 2 here and pasted it into a HTML content box. It worked for a few hours and then stopped working. (using Firefox 20.0)
Kos...I tried with Jen's and couldn't get it...then I re-tried the style background html and it works on all of my custom pages. I wonder if it would work for you? I use Firefox 20.0 also.
<STYLE>body{background: url(http://storage.ning.com/topology/rest/1.0/file/get/14604169?profile...) fixed}</STYLE>
Let me know...
Edie
Good idea:)
I noticed the same thing. It's still pretty buggy. I have some other work-arounds too, but don't think I'll put too much effort into it until we get more selectors.
That did it. <style> worked on FF, IE and Chrome. *whew! Huge sigh of relief. I feel as if the weight of the world has been lifted off of my shoulders. Thank you so very, very much.
That's great! Thanks for letting us know...
Edie
Gosh Guys,
Sounds like I did a horrible job on this one! Trying to catch up on the discussion. All I remember is, the <style> tag wouldn't work for me, but did for Edie. Sorry for any trouble this has caused.
Best,
Jen
Forgot to mention that "body" is kind of like "your website". So we are basically changing the background to your website...
The stupid text editor keeps stripping my code & links when I post this. Here's my tip for you that's not broken...
(original reply)
Hey Kos,
You kind of have to think of it in 3 steps.
When you add code to your Custom Code or Advanced CSS, it's usually for your entire network or multiple parts of the network...right? There are ways to customize individual pages (and other things) by hiding code in the page (that nobody can see) that references a style sheet that you have also upload to the file manager. When you do this, it will override the CSS for the page you have the hidden reference code in.
1- Load images into your file manager, so they are on Nings servers that can be called upon. Keep them in their normal format (Jpeg, Png...etc). If you are using large images, you should optimize them in Photoshop or an online image optimizer to reduce the file size first.
2- Create a CSS sheet / file that will hold the CSS changes you want. You can think of it like a saved document that acts like your Advanced CSS box. When the style sheet is referenced with the "hidden link code", it will use the code in your document for anything you changed instead of what's on the page. Write the code in the remote style sheet just as you would if you were to add it to your advanced CSS section.
They key is to make sure you save the doc as a .CSS file. If you don't have Dreamweaver, you can still make a style sheet (CSS) with a regular text file using Notepad on your computer or download a text editor. Don't use Microsoft Word or similar programs that may add additional formatting. If I'm not using Dreamweaver, I use Komodo Edit as another program to copy and paste between the two when I'm messing around. They have a free version that's handy.
Once you put the CSS changes you want into the text document, save it and then change the file extension.
Example:
KOSremotefile.txt
Rename it to
KOSremotefile.css
Now you have a document that holds the Ning pages CSS changes you want, and it's in a CSS format so it can be used. Upload that CSS file to your file manager so that it can be referenced.
3- Now you just need to add the hidden "reference" code to the page you want. It can be in a box with other content since it's hidden. Just make sure you are in HTML view when you add the hidden code.
Here's an example I threw together for you to hopefully make sense....
1- I want to change the background of a specific page.....and say... remove the header as well.
Upload the background picture I want to my file manager so I can copy the url and put in the remote style sheet (text file).
We'll say this one that I'm currently messing with:
http://api.ning.com/files/MyF4ZQ2dSLiGU3JsumFyiRtrHigQ4On1EA6e2-EHI...*tAmiD3mJLzPnkyxhh8M54OapGOCexj7/3.0Header4192013NewOne2.png
_
_Now create a CSS file using one of the methods I mentioned above and add the CSS code for the body background:
__
_body {background-size:100% 100%; background:url(yourbackgroundimage.jpg)fixed center top!important;}
Insert the url for the background image you uploaded, into the code (replace the "yourbackgroundimage.jpg").
body {background-size:100% 100%; background:url(http://api.ning.com/files/MyF4ZQ2dSLiGU3JsumFyiRtrHigQ4On1EA6e2-EHI...*tAmiD3mJLzPnkyxhh8M54OapGOCexj7/3.0Header4192013NewOne2.png)fixed center top!important;}
__
_Done! That's it for your background!
Now to remove (hide) the header...
Add this code to the remote sheet:
header{display: none !important;}
Now you can save the sheet and upload it to your file manager.
http://api.ning.com/files/N3dksbtuMJ59hVVT*sofffQZ80Hh1xSjGXhlg3h3aKaYnYKYTlCRZ81Lpw05dQzG5-4ViSWrjG1Py6iTr0o-ekkLTPZjuBfB/ExampleCSSforKOS.css
__
_Now all you have to do is insert the hidden code into the page you want that will reference the sheet you just uploaded.
__
_<link rel="stylesheet" type="text/css" media="screen,projection" href="yourfile.css">
Add your url from the CSS sheet you uploaded to the code above so it will be:
<link rel="stylesheet" type="text/css" media="screen,projection" href="http://storage.ning.com/topology/rest/1.0/file/get/981290761?profile=original" />
Now you can copy the new link reference to your page you want to (make sure in an html block and in html mode of editor)......and BINGO!
Copy & paste the example I made for you so you can see it work and then identify what to change for your needs. Even when Ning does make things easier, these are some handy tricks to have in your pocket. Once you do it a few times, it's easy and soon you won't remember what your basic network even looks like...lol.
Hope that makes more sense for you. :)
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Ning.spruz.com in Ning 3.0 Feb 19. 0 Replies 0 Favorites
Started by Evelina in Ning 3.0 Aug 30, 2023. 0 Replies 0 Favorites
Started by Ning.spruz.com in Ning 3.0 Jan 15, 2022. 0 Replies 0 Favorites
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.