StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-20-2009, 09:48 PM
poodyglitz poodyglitz is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 74
Default Move Search Function To Sidebar

I'd like to take the search form out of the header and put it into the sidebar. It seems that simply moving the code doesn't do the trick. It there some PHP code that has to be altered or something?

Thanks in advance.
  #2  
Old 06-21-2009, 04:42 AM
CharlesClarkson's Avatar
CharlesClarkson CharlesClarkson is offline
Community Moderator
 
Join Date: Feb 2009
Location: Stephenville, TX, USA
Posts: 11,356
Default Re: Move Search Function To Sidebar

Quote:
Originally Posted by poodyglitz
I'd like to take the search form out of the header and put it into the sidebar. It seems that simply moving the code doesn't do the trick. It there some PHP code that has to be altered or something?
Delete the search box and add the Search Widget.


HTH,
__________________
Charles "Rubeus Hagrid" Clarkson
StudioPress on Facebook

I'm not really a smart person. I just play one on the Internet.

Please use the HTML or PHP tags for pasting code.
Please make your links click-able: this_is_annoying.com
http://this_is_not_annoying.com.
  #3  
Old 06-21-2009, 08:57 AM
poodyglitz poodyglitz is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 74
Default Re: Move Search Function To Sidebar

Thanks, but the "Go" button is just the generic "Search" and doesn't match the style of the theme. How do I make that happen? You can see at:

http://www.oppgen.com
  #4  
Old 06-21-2009, 09:01 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: Move Search Function To Sidebar

alternatively you could open sidebar.php and do this

Code:
<div id="sidebar">
		
<div class="widget">
<form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
		<input type="text" value="Search this website..." name="s" id="searchbox" onfocus="if (this.value == 'Search this website...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search this website...';}" />
		<input type="submit" id="searchbutton" value="GO" /></form>
</div>

	<ul id="sidebarwidgeted">
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #5  
Old 06-21-2009, 09:37 AM
poodyglitz poodyglitz is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 74
Default Re: Move Search Function To Sidebar

Thanks, looks like it works.

Now, is there any way to center it and make the text field the same length as the "Sign up" field ? Balance is everything to us anal Art Directors. :)
  #6  
Old 06-21-2009, 09:54 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: Move Search Function To Sidebar

look in style.css for this

#searchbox {
background: #F7F5EF !important;
width: 250px;<-----change to this
color: #495D5C;
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #7  
Old 06-22-2009, 11:07 AM
poodyglitz poodyglitz is offline
Registered User
Pro Plus Member
 
Join Date: Mar 2009
Posts: 74
Default Re: Move Search Function To Sidebar

Perfectamundo!

Thanks so much!
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move Search Box into the sidebar francis1tree General Discussion 2 01-16-2010 03:10 PM
Search Function valeryvie General Discussion 8 09-25-2009 01:36 PM
Search Function hlmagazine General Discussion 2 07-08-2009 10:33 AM


All times are GMT -5. The time now is 05:07 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.