![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi :-)
I want to move the SEARCH that appears in the widget area to the 468X60 Header Area Box -- where can I find the code for the search box to place in this area? Thanks and thrive... Valery |
|
#2
|
||||
|
||||
|
Try something like this:
Code:
<form id="searchform" method="get" action="<?php bloginfo('url'); ?>/">
<input type="text" value="<?php _e("Search this website...", 'studiopress'); ?>" name="s" id="s" onfocus="if (this.value == '<?php _e("Search this website...", 'studiopress'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e("Search this website...", 'studiopress'); ?>';}" /><input type="submit" id="searchsubmit" value="<?php _e("GO", 'studiopress'); ?>" /></form>
|
|
#3
|
|||
|
|||
|
Hi Brian :-)
Got some funny text in it... but have decided to leave the search where it is for now :-) Thanks anyway! Thrive... Valery ~ |
|
#4
|
||||
|
||||
|
Hi Valery,
If you're interested, this is how I did it. Basically you're swapping out the "header ad" stuff for the search box. Look in header.php for ... Code:
<div class="headerright">
<?php if(get_theme_mod('468_header_ad') == 'Yes') { ?>
<?php echo stripslashes (get_theme_mod('468_header_code')); ?>
<?php } else { ?>
<?php } ?>
</div>
Code:
<div class="headerright">
<form id="searchform" method="get" action="<?php bloginfo('url'); ?>/">
<input type="text" value="<?php _e("Search this website...", 'studiopress'); ?>" name="s" id="s" onfocus="if (this.value == '<?php _e("Search this website...", 'studiopress'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e("Search this website...", 'studiopress'); ?>';}" /><input type="submit" id="searchsubmit" value="<?php _e("GO", 'studiopress'); ?>" /></form>
</div>
Code:
.headerright {
width: 478px;
float: right;
margin: 0px;
padding: 10px 0px 0px 0px;
}
Code:
.headerright {
width: 230px;
float: right;
margin: 0px;
padding: 20px 0px 0px 0px;
}
__________________
May the wind be at our backs |
|
#5
|
|||
|
|||
|
Thanks Len!!!!!
|
|
#6
|
||||
|
||||
|
You're welcome. :)
__________________
May the wind be at our backs |
|
#7
|
||||
|
||||
|
I second that - thanks Len, way to go above and beyond by sharing what you did. :)
Quote:
|
|
#8
|
|||
|
|||
|
Thanks for that. I just used the code you quoted to replace the RSS feed and comments icons with the search function.
|
|
#9
|
||||
|
||||
|
Hello Affiliate4Travel ,
Please can you tell me which file to edit to replace the RSSand Posts links. I would like to do the same, have just downloaded the NEWS theme so not very familiar with the files, your tips will help! Thanks!
__________________
Founder President Careerbright Career Network Website: http://careerbright.com |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search Function | hlmagazine | General Discussion | 2 | 07-08-2009 10:33 AM |
| Search function not working | abijah | General Discussion | 3 | 03-11-2009 11:59 AM |
| How to control the search function | kidkash | General Discussion | 5 | 11-27-2008 01:16 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us