DESIGN TRICKS #4: ADDING A TWO-COLUMN HERO BOX

Welcome to the fourth in a series of Ning Creators blog posts focusing on simple design tricks you can use on your network.

Trick #4: Adding a Two-Column Hero Box

The following code, used on the homepage of Ning Creators, will insert a "hero" module that spans two columns at the top of your network's Main page content area. This area could be used to insert an image, a custom Flash/JavaScript piece or just a simple text introduction.

Here's an example:

To get started, visit the "Appearance" area inside the "Manage" tab, then paste the following CSS snippet inside the "Advanced" section (underneath any other code that may already be there):

.space {height:270px;} /*Height of the Hero Area */
.module_text .xg_module_body {overflow:visible;}
#spotlight {margin-left:-245px;width:741px;}
#spotlight img, #spotlight embed, #spotlight object {padding:0; margin:0; max-width:741px;}

Next, visit the "Analytics" area inside the "Manage" tab, then paste in the following snippet (underneath any other code that may already be there):

<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("#xg_layout_column_2").attr({_maxembedwidth: "741"});
}
</script>

On the "Features" area inside the "Manage" tab, add one new Text Box at the top of the left column, then a second Text Box at the top of the center column. Save your changes.

Here's an example:

Back on the Main page, click the "Edit" button on the new Text Box in the left column, then insert the following snippet:
<div class="space"></div>
Now click the "Edit" button on the new Text Box in the center column, and insert this snippet:

<div id="spotlight" class="space">ADD HERO CONTENT HERE</div>
Replace the "ADD HERO CONTENT HERE" text with your custom content (whether it's an image, embed code, HTML, etc.), then save your changes.

Enjoy!

Views: 5461

Tags: design, tricks

Comment by Diane L. Garrett on April 1, 2010 at 5:16pm
How do you get the customized homepages? They are very elegant. What do I need to do to get one?
Comment by Felipe on April 1, 2010 at 5:58pm
this is cool but it WASTES our text boxes since we have LIMITED number of text boxes and NING won't do anything about that! and rumors that they might offer it as a premium service to have more text boxes. God, it's pissing me off.
Comment by Eric Suesz on April 1, 2010 at 7:28pm
Ann Marie and Sam: You are viewing them logged out and they show that way as well?
Comment by Billy on April 2, 2010 at 1:40am
Hi all
Could anyone help I have obviously done something wrong trying to do the above any Help much appreciated. http://worldfishing.ning.com/
Thank you
Billy
World Fishing News Team
Comment by Jose Ruiz on April 2, 2010 at 3:13am
I don't seem to be able to make it work and after following the instructions this is all I get:

Comment by Billy on April 2, 2010 at 4:02am
all I have been able to do is add a picture by removing the words "Welcome to hotcast UK" and inserting a link to photo on photobucket I like you must be doing some thing wrong I am using IE8 ????????????
Comment by Billy on April 2, 2010 at 11:10pm
Thanks for the feed back so If I add two or more pictures it will scroll?
Comment by Billy on April 2, 2010 at 11:17pm
Strange that so many can not get this to work require more information to get it to work?
Comment by Billy on April 2, 2010 at 11:41pm
Considering that this came out in a news letter and so many now have a first page that looks PANTS is not very good and a good reason not to use the codes advertised in the news letter!
Comment by Jose Ruiz on April 3, 2010 at 12:13am
I cannot get to work either. I just about manage to get one picture to show half properly but have no idea what to do with the second one to make it look like a carrousel. Definitely nothing like the one in network creators. Still waiting for that "AH" moment

Comment

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

Join Creators

Latest Activity

Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/19/13)' in the group The Sandbox
"Edited to add iPhone 5 view and a little housekeeping."
25 minutes ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Oye it's back again.  smh  SP would you take a look for me purdy puhleeease and see…"
1 hour ago
Kos replied to Kos's discussion 'What's The Best Width When Designing A Header in 3.0?' in the group The Sandbox
"I ended up just designing/uploading a logo and moving my tabs up to the right side.  No CSS…"
1 hour ago
Kos replied to Joao Fernandes's discussion 'Easy Slider For Ning 2.0'
"Slideful works in 2.0 as well.  Free, very easy and versatile as well. On occasion I…"
1 hour ago
Kos replied to Allison Leahy's discussion 'Facebook App Updates'
"Allison thank you for posting this.  That July update reminder was becoming annoying and I…"
1 hour ago
Peter Matthews replied to Peter Matthews's discussion 'Will I be able to merge my 2.0 site with a 3.0 site that I am building now?'
"Dear Phil & Susie, thanks for the replies. It might be good for us to think of different ways…"
2 hours ago
Fire-Tech replied to soaringeagle's discussion '3.0 feature request'
"+1"
10 hours ago
Allison Leahy replied to soaringeagle's discussion '3.0 feature request'
"Thanks. I'll make sure this is filed as a feature improvement for 3.0."
11 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service