DIYthemes Forums  

Go Back   DIYthemes Forums > Forum Archives > Retired in Re-Org > Customization

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2009
DIYmember
 
Join Date: Feb 2009
Posts: 153
Default Move search box to right of nav bar?

Hi,
Trying to figure out how to move the search box to go on the same line as my nav bar, just on the right hand side. Or I'd even be happy with it just above the nav bar, as long as it is on the far right.

Would like it to look like one of these sites:
The Frisky: Relationship Tips, Celebrity Gossip & Sexy Fun
or
StyleBakery.com - style and shopping for the real world
or
Fashionista - Fashion Designers, Models, Shopping, Style

Please let me know if you know how to do this. Thanks!
  #2 (permalink)  
Old 03-20-2009
DIYmember
 
Join Date: Feb 2009
Posts: 153
Default Re: Move search box to right of nav bar?

I figured this out myself! Used this code in custom.css:

.custom #search input {float:right; margin-top:-51.5em;}
  #3 (permalink)  
Old 03-21-2009
DIYmember
 
Join Date: Feb 2009
Posts: 153
Default Re: Move search box to right of nav bar?

Actually I take that back. I would like to find a better solution for this.

The problem is that the search box will constantly move around depending on what you have in the sidebar #2. (I had to put the search at the very bottom of the list, otherwise it makes a very unattractive empty space when you move it using the line in custom.css)

Also, if some of your ads are slow to load or whatever, the search box will move around depending on those too. It just looks unprofessional.

Does anyone know how I can use a hook to move the search box to the right of the nav bar - in a FIXED position????????

thanks!
  #4 (permalink)  
Old 03-21-2009
girlie's Avatar  
Join Date: Oct 2008
Posts: 7,149
Default Re: Move search box to right of nav bar?

I like the way Ben Bleikamp did it:

Create a Custom Search Box with Thesis - Ben Bleikamp
  #5 (permalink)  
Old 03-21-2009
DIYmember
 
Join Date: Feb 2009
Posts: 153
Default Re: Move search box to right of nav bar?

Thanks, but I'm a bit slow... still not quite understanding how this works, even after reading Ben's tutorial.

This is the code I have in the Header section using Openhook (thesis_hook_header):

<div id="header_welcome"><p>Welcome to BeautyEditor.ca</b></p>
<p>Log In | Register</p></div>


(note: the log in / register will have links just as soon as I figure those out)

This is the corresponding section in my custom.css:

#header_welcome { float: right; margin-top: 0.5em; margin-right: 1em; display: block; line-height: 2em; color: #000; letter-spacing: 2px; }

Anyway what I want to do is have my search box directly underneath the welcome message to the right of my header, like this:

Welcome to BeautyEditor.ca!
Log In | Register
[search box]


How do I do this? I'm cool with styling it in custom.css, it's what the heck I'm supposed to add in the header hook that has me lost here.

Also - I want them to align to the right, which I also haven't figured out.

If anyone has a clue what I need to do here I would REALLY appreciate it. thanks!

PS - again you can look at my site here
  #6 (permalink)  
Old 03-23-2009
DIYmember
 
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 1,504
Default Re: Move search box to right of nav bar?

In OpenHook, change
<div id="header_welcome"><p>Welcome to BeautyEditor.ca</b></p>
<p>Log In | Register</p></div>

to
<div id="header_welcome"><p>Welcome to BeautyEditor.ca</b></p>
<p>Log In | Register</p>
<?php thesis_search_form(); ?></div>


Make sure the box is checked to allow PHP to be used.
__________________
kristarella.com – a blog about design, photography, Macs, Christianity, and other random life stuff

Did you try validating?
How to ask questions the smart way – help us to help you
  #7 (permalink)  
Old 03-23-2009
DIYmember
 
Join Date: Dec 2008
Posts: 107
Default Re: Move search box to right of nav bar?

I'd like to add the search to the right of my tabs as well - can i just add "<?php thesis_search_form(); ?>" or do I need the div id? here is my site (Data Plus Hospitality Solutions ? Accounting Products and Services for a Global Economy | Back Office Accounting Software for the Hospitality Industry) i don't mind taking out the subscribe button to make room. I'm using OpenHook as well.

Thanks!
  #8 (permalink)  
Old 03-23-2009
DIYmember
 
Join Date: Jul 2008
Location: Sydney, Australia
Posts: 1,504
Default Re: Move search box to right of nav bar?

You can just use the search form. Then you'll need CSS,
.custom form.search_form {float:right; margin-bottom:-2em;}
or something like that. Hard to say for sure.
__________________
kristarella.com – a blog about design, photography, Macs, Christianity, and other random life stuff

Did you try validating?
How to ask questions the smart way – help us to help you
  #9 (permalink)  
Old 03-26-2009
DIYmember
 
Join Date: Jan 2009
Posts: 55
Default Re: Move search box to right of nav bar?

please help Kristarella, I have been trying to place my search box next to my rss icon for days with no luck. Here is the thread : http://diythemes.com/forums/thesis-c...-possible.html
__________________
http://www.redheadwindscreens.com Custom windscreens for your Zoom H4n, Zoom H4, and Zoom H2 hand held recorders.
  #10 (permalink)  
Old 03-28-2009
DIYmember
 
Join Date: Jan 2009
Posts: 98
Default Re: Move search box to right of nav bar?

Since I am styling my search box too, I thought I should jump on this thread instead of starting a new one.

My problem is, I am trying to add a search submit button to the right of the search box. havent been able to figure it out after going it it for about 2 days.

I have used #searchsubmit {background: #111} and different variations of it without success

how do i get the search submit button to show ?
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright © 2008–2010, DIYthemes