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

Forum

WHAT DO THESE CODES DO??

I'm going through my advanced appearance code and I'm unsure what these codes do/control. Any help is appreciated!

First one: (it obviously puts a border around some module, but which one??)

div.xg_module {
border: 1px solid #d0d0d0;
}

Second one:

div.account #xg_head {padding:0 !important;}

Third one:

select.quickpost {display:none!important;}

Fourth one: (obviously making font somewhere BLACK, but where? )

/* Optional Font Color, Font Size, and Font Weight */color:#000000;
font-size:11px;
font-weight:bold;
}

Thanks in advance for any insight you can give me!

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

Join Ning Creators Network

Email me when people reply –

Replies

  • First one: puts a Gray border around all your modules like your latest activity, blogs, forum and such. It will not work for all modules unless you add the word important to the end of it like this

    div.xg_module {
    border: 1px solid #d0d0d0!important;
    }

    Second one: The way it's written it does nothing

    Third one: hides the quickpost button  where and what that button is I don't know

    Fourth one: Does nothing.. Half of the code is missing

  • Okay, since I'm moving to DS, I won't need the First One.  Check!

    On the fourth one, this is the code right above it. There's nothing below it.  Does it do anything now? LOL 

    #xg.account .xg_module_body {
    background:url(http://api.ning.com/files/3Dzc1qZMiTMHZj6dSisxo87mnJ47VUaCOSEmKmUpo...*KekzjYRWGblaP9tZ28GmlvNAtCx18iN-IL1S6Z-fC0t/logon5.jpg) top center;
    background-repeat:no-repeat;
    /* Optional Font Color, Font Size, and Font Weight */color:#000000;
    font-size:11px;
    font-weight:bold;
    }

    Thanks so much George. Those other ones apparently aren't vital to my appearance, because I don't seem to miss them on my test network. 

    • they don't appear to go together.

      To comment on the second code Monica is semi-correct if you add a comma after div.account it will affect both The account module and the head of your network you will also need to add (px) after the zero to complete the code. but like I said the way it's written it does nothing. If you want zero padding on your head and your Sign-up & Sign in replace that code with this one

      div.account, #xg_head {padding:0px !important;}

  • Hey Dianne, 

    The first one, div.xg_module, applies customizations to the modules on your network. For example, the CSS string you give for this will add a 1-pixel gray border around each module on the network. 

    The second one, #xg_head, affects the header section of your network, where you add your network logo and header background image. The CSS string above with "padding: 0 !important" ensures that there be zero padding around your header section. The div.account part of that affects the network's sign up and sign in pages. Padding adds cushion around the content so this essentially will push stuff down a bit on the screen. There should be a comma between the two properties, otherwise it doesn't seem to do anything. 

    The third one, select.quickpost, affects the Latest Activity feed on your network if you're using the Classic Appearance Editor.  

    The fourth one doesn't have any location specified for it, so I think that is just intended to apply everywhere, but as a back-up only, in case the other specification doesn't apply. I took a peek at your network and see that you have this specified for the #xg.account .xg_module_body area of your network, in case an image added doesn't show up.

    I don't see that class anywhere on the network, so it might be a defunct class. I do see, though, that the #xg_module_account.xg_module class affects the personal member account module that appears on every page of your network, which maybe is what you were going for. 

    Hope this helps! You might also want to see the breakdown of classes of a Ning Network at http://go.ning.com/studio/docs/overview/html_structure.html#.

    -Monica

    • Thanks guys!  My conclusion is that these pieces of code can be safely dumped when I make the transition to Design Studio. LOL  Most don't seem to be doing anything drastically important that I will miss.

      With code number one (the module border), I have that ability built into DS, so that one's definitely gone.

      I appreciate the thorough explanations, though.  It gave me a little more understanding, although I'm still a universe away from truly "getting" it.

      :D

This reply was deleted.

Search the Creators Network

Latest Activity

Scott Bishop replied to David Carr's discussion Being a Ning Network could ruin the deal
"At one point I was going to move over to WP with the Buddypress plug-in. After looking hard at budd…"
22 minutes ago
Pat Howlett replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"I didn't stop using 3.0 because of this - I really liked the platforms direction - I left because t…"
1 hour ago
Kos replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"It's been fine if you didn't need that ability.  I love my 3.0"
2 hours ago
Kevin Acosta replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"YIKES! having never converted over from 2.0, I never knew that the video feature was not available…"
2 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Make Your Videos In The New Video Feature Responsive ( updated: 30-03-17 )
"Just updated this code 30-03-17"
10 hours ago
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thanks for speaking to them and yes I do agree that it is the correct way to use existing classes l…"
11 hours ago
Bizz ( John ) replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Hi Kyryl
Thanks for the reply and you are most welcome about the bugs. I have been using Ning for o…"
11 hours ago
Kyryl_Ning_Support replied to Bizz ( John )'s discussion Ning- Your design studio widget images are not loading
"Hi John,
Just checked the labels on my network as well, and as I see they are missing as well. So I…"
13 hours ago
Kyryl_Ning_Support replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Hi John,
You shouldn't have, but I should admit that it will be easier for the management to look t…"
14 hours ago
Beatriz Martín replied to Dan Porter's discussion Multiple Group Hubs
"thx, kos! :)"
14 hours ago
Tony Rosa is now a member of Ning Creators Network
14 hours ago
Kos replied to Dan Porter's discussion Multiple Group Hubs
"Beatriz if you need something special designed beyond the ordinary, I would recommend you post your…"
23 hours ago
Garfield Archivist replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thank you. I appreciate the response and understand you needed to discuss with developers.
I find i…"
23 hours ago
Beatriz Martín replied to Dan Porter's discussion Multiple Group Hubs
"Hello.
I would like to know how this feature is done or which creator could help me.
Thx!!"
yesterday
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thanks Pat :-)
Yes it is a nice addition but I do wish a little more QA was done before releasing f…"
yesterday
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"I have re-uploaded this video so you can see it showing the green screen in the list page and also…"
yesterday
Bizz ( John ) replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Thanks for the reply Kyryl. I have addressed all the issues in a single post for you to look at her…"
yesterday
Pat Howlett replied to Yana Ning Support's discussion Video Feature on Ning 3.0 is now available!
"Great addition Ning Team and I appreciate Bizz John taking the time to jump in and assist in findin…"
yesterday
Kyryl_Ning_Support replied to Ian's discussion Side Backgound Image keeps shrinking and orienting left & animated gif header isn't working
"Hi Daniel,
We do apologise for the inconveniences at this moment developers are working under the i…"
yesterday
More…