Does anyone know of a way to get the custom google search bar in to the header of our network?

I have seen plenty of advice on how to get google analytics, slideshows and so on in there but none about the search bar!?

I have my logo on the left hand side of the pahe and would love a search bar on the right!!?

Please help!

Luke

Views: 343

Replies are closed for this discussion.

Replies to This Discussion

You can use Google Custom Search, but I'm not sure that you can put it in the header area. Maybe someone can help you float it in the spot you'd like using CSS, but I'm not sure I could figure that out myself. 

My guess would to put it in an instant ad box either above or below the header and then move that box about with some CSS

for example, using totally made up values and completely untested as I'm on my over-priced but warm to hold Apple tablet
......
#xg_ad_above_header{
position:relative;
top:20px;
Width:400px;
}

Below header is
#xg_ad_below_header

You get the idea.

Be warned, I think google custom search usings some script, and for some annoying reason Ning text editors have once again started wrapping code in text boxes in paragrapgh tags, giving you unwanted spacing issues. On my network at least.

Cheers

SP

Hi SP,

That works great thank you very much. The only problem I have now is that I have a space above the header!? Can I pad that somehow to narrow the gap?

Loving your work on the super duper tablet that starts with an i.

Luke

Best bet to mitigate this would be some negative margin

I have tried that but I can only make the header thinner and cant bring the top of the header up the page?

This is the code which is obviously wrong!!

#xg_masthead {height:75px!important;}

Is it live? What's your URL?

Which is exactly what you have put above....!... sorry.... I didn't read the last bit!

Hi Luke,

You can use the 'on the fly' version of Google Custom Search. Attached is a basic workaround which adds the feature in your Ning bar. Just insert the code in your Custom Code Box (My Network > Custom Code).

Screen cap below:

This should get you started.

Attachments:

..or use this code for the Ning jquery built-in if you're having trouble with the above attached.

Attachment: Google Custom Search (Ning bar)

This could be easily if Ning gives each added text box different "id" like Tabs

All you had to do in the custom css was

textboxid{

marging-top: whatever px;

display: inline;

}

Only using it in test network at the moment Here is a screen shot

Please ignore the horrific look of the site x

My site is called www.sogolfnet.com but it is a private network unfortunately!

RSS

Latest Activity

Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"They just need someone to look up too, and the church has the opportunity to step up in areas where…"
5 minutes ago

NC for Hire
Bernard Lama replied to Mike Wolleben's discussion 'Landing Page & Menu Bar'
"The above code is for all pages.. and the below code is for just the main or landing…"
5 minutes ago
Profile IconPuzzleSolver, Kira Slye and 3 other members joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
12 minutes ago
Suzie Nielsen replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"And most importantly teaching morality in a demoralized society... I hope you get thousands of…"
16 minutes ago
Mike Wolleben replied to Mike Wolleben's discussion 'Landing Page & Menu Bar'
"will it remove the bar for the whole site or just that one landing page?  And thanks for the…"
18 minutes ago

NC for Hire
Bernard Lama replied to Mike Wolleben's discussion 'Landing Page & Menu Bar'
"This code will hide the top nav bar #xg_navigation { display: none!important; }"
20 minutes ago
Suzie Nielsen replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"SP-WOW! Talk about harsh! and you criticize SE! At least SE did not call our sites ugly! geeze..."
20 minutes ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"John, I really like the look of your site! Love the layers and the color palette. How'd you…"
22 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service