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: 5465

Tags: design, tricks

Comment by solo on March 31, 2010 at 12:23am
thank you so much for this tip..8)
Comment by Eric Suesz on March 31, 2010 at 12:27am
Yes, this is great. Thank you!
Comment by BEAT YOUR PB on March 31, 2010 at 1:36am
Is there any way the 2-column module could run across all pages, not just the mainpage - would be another option for inserting a leaderboard ad into the site below the nav bar (which many NC's are wanting to do)?
Comment by Laura on March 31, 2010 at 7:09am
Comment by BEAT YOUR PB on March 31, 2010 at 9:03am
Thanks Laura. Don't think that's quite what I'm after....What I'm trying to achieve is to place a leaderboard ad under the main navigation as they have here: http://spill.com/. The ad would be pulled in using a jasvascript tag or alternatively an ifrrame tag from an ad server (open x). Any thoughts?
Comment by Robert on March 31, 2010 at 11:00am
I don't have enough text boxes left over to accomplish this .. bummer
Comment by Lubi on April 1, 2010 at 1:41am
it works.
Comment by AjIt█▬█( Logic Gate™ ) on April 1, 2010 at 4:49am
Comment by Jim Robinson on April 1, 2010 at 11:00am
Is there any way to get more text boxes for sites that are content heavy??!
Comment by Marilee Haney on April 1, 2010 at 1:57pm
Thanks! I was looking for new ideas!

Comment

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

Join Creators

Latest Activity

Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"I send a welcome message to everyone and personalize it:   Welcome to NavyDads.com <...>…"
59 minutes ago
DAvid Cordina replied to kid k's discussion 'Poster ici vos adresses de reseaux NING !' in the group Ning French Networks
"Les réseaux apprenants créés par les Alliances Françaises en…"
1 hour ago
DAvid Cordina joined kid k's group
Thumbnail

Ning French Networks

A group for french network creators!See More
2 hours ago
Violeta replied to Violeta's discussion 'Problemas.. y más problemas.....' in the group Ning Networks en español
"Hola Rosa Maria, ¿ Cómo estás? tanto tiempo! No entiendo si cerraste tus…"
2 hours ago
Bon replied to Bon's discussion 'Cannot Install a new Background in Classic 2.0'
"As of 6:20am today- the page installed----the code, of course had been left in advanced--this…"
2 hours ago
Violeta replied to Violeta's discussion 'Problemas.. y más problemas.....' in the group Ning Networks en español
"¿ Cuál ticket Mayra ? ¡No me llegó nada! Hoy mandé otro…"
2 hours ago

NC for Hire
Elson Tan replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"Great news, finally we can add some code to the head!"
3 hours ago
sho allan replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"so NICE!!!"
3 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service