Ive been playing around with the possibilities of making a site-wide column which spans the top of all 3 columns of the network.  WARNING:  this is a very advanced hack and i would advise trying it on a test site first before applying it to your primary network.  This hack in in 2 parts.  First is adding the actual box, then (optional) adding a SHOW/HIDE element to the box.

You can view the Finished 3 Column Text Box Live on Land Surveyors United
3 Column Text Box

3 column box hack

With Show Hide Expanded

show hide feature


To add a text box at the top of the page you need first to create the box somewhere in your page.

Inside the text box place an elment with name and id "boxy3".  For example

<div name="boxy3" id="boxy3"> Content of your 3 column text box</div>

Now, go to the analytics section and add the following javascript code:

<script type="text/javascript">
var box3 = x$("#boxy3").parent().parent();
x$("#xg_body").children(":first-child").before(box3);
box3.width(935);
</script>

What does this code do?
Glad you asked- it simply sets the box that contains the "boxy3" element as the 1st child of  element "xg_body" (in other words, the page elements container).

After you add the text box,you can edit the text box content as you would do for any other textbox, just remember to keep an element called "boxy3" and place the content between the divs.  You will not want to add more than one of these boxes to your network because it will confuse all browsers and your network will look like complete shit.

Now, if you would like for this box to repeat on each and every page of your network, place it in the green area of the Features Layout section of dashboard as shown in the picture here:

features layout


I believe this tutorial has gotten long enough....i will post a future tutorial on the show/hide hack in the near future.  Add me as a friend so you'll see it when I post in the next day or so.

I hope you find this tutorial to be helpful and interesting.

Tags: 3, analytics, box, column, design, hack, how-to, layout, span, text, More…tutorial

Views: 955

Reply to This

Replies to This Discussion

Thanks. I needed this!!

 

no problem buddy

JFarrow - this hack is so close to being what I'm looking for.  The only problem is once I inserted an  iframe embed, it shrunk it.  Any ideas on how I can make it work??  I've got it stretched across the two column layout currently...

LIFE SAVER,,thanks 

I'm glad this hack still works for all of you!

like before a real life saver...

RSS

Latest Activity

Denis replied to PeruCool's discussion 'Alternatives to Ning social network'
"Great site man. Thanks for sharing the link. I am working on mine. I hope I will be done by the end…"
2 hours ago
Perrie Halpern replied to PeruCool's discussion 'Alternatives to Ning social network'
"Is there a specific code generator you use? I hope you don't mind me asking."
3 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"This would be a reason to stay on Ning if I knew I could at least have some of what is here."
4 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"more specific header {height:60px;}"
4 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"css"
4 hours ago
Larry Matthews replied to James Nored's discussion 'How do I create a taller header?'
"I apologize for my lack of clarity, and not being a mathematician? Where does the {…"
4 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"remove a 0 off 600? is this math class?"
5 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Free Site Promotion'
"Me two, since I forget half the links I post."
5 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service