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

Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Thanks man and best of luck"
20 hours ago
Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Have been focusing on my elearning site...completely different software.I was getting really close…"
20 hours ago
George H. Compton IV replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
":( Sorry to see you go my friend.  Best of luck to you and your new network."
21 hours ago
George H. Compton IV replied to Katy Blagg's discussion Resizing Group Icons
"Hello Katy this should do the trick, the code goes into the design studio global CSS section..
@med…"
21 hours ago
⚡JFarrow⌁ replied to Katy Blagg's discussion Resizing Group Icons
"try adding this to see if it helps .groupHub-group.matrix-itemFluid {
max-width:100%
}"
22 hours ago
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"I spent THOUSANDS of dollars on SE PHP and it was the biggest mistake I've ever made beyond stickin…"
yesterday
George H. Compton IV replied to George H. Compton IV's discussion Add Google translate to all pages. Any network not just Ning networks!!!
"Update 7/21/16 -- Google translate v11 --- The old version no longer works. Google has discontinued…"
yesterday
Kos replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Yeah, where did you go?"
yesterday
Kos replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"I wish I had your patience to manually move everything.  Just the thought gives me a headache.  It'…"
yesterday
The Builder :) replied to The Ning Team's discussion Update on May Service Disruptions
"  Very very thanks Kos. "
yesterday
Fire-Tech replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Yup... shut all of mine down too. Last annual billing closes this month.  Did you ever get SE to wo…"
yesterday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Yeah, I know... it's old news. Still, if we can help any other person from wasting years of money a…"
yesterday
Kos replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"Sorry to see you go Troy but you've conveyed pretty much what everyone feels.  Best of luck buddy. …"
yesterday
Kos replied to manuela stacca's discussion Can I use Ning 2.0?
"Ning no longer issues 2.0 but you can change your title to "looking for a 2.0" and maybe someone ha…"
yesterday
CocteauBoy replied to CocteauBoy's discussion After Years of Enduring Empty Promises, I Am Leaving Ning
"*3+ years since the abandonment began... but I've been with Ning since 2006 or '07. And I finally g…"
yesterday
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"File a ticket online. Bookmark it for future reference http://ec2-75-101-132-140.compute-1.amazonaw…"
yesterday
The Builder :) replied to The Ning Team's discussion Update on May Service Disruptions
"But I Can't access!   :'(

My site is inaccessible (three days)!!! Whats going on Ning? ==>  http:/…"
Thursday
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"Ning doesn't monitor the forums anymore.  You'll have to go with a ticket."
Wednesday
The Builder :) replied to The Ning Team's discussion Update on May Service Disruptions
"Ning, help us, we have problems with our site."
Wednesday
Kos replied to Katy Blagg's discussion Resizing Group Icons
"Understood.  Maybe someone else here is familiar with tabbed containers..............anyone?  Anyon…"
Wednesday
More…