Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Inactive to active Search Button


 
Prev Previous Post   Next Post Next
  #1  
Old Jan 23, 2015, 12:19 PM
Bruno
 
8 posts · Jan 2015
Inactive to active Search Button

By default Search Button is inactive ( in Search field). I have to use "Enter" button to search website.

I think people still want to hit search button with mouse rather than "Enter" button.

I made a few changes to fix it.

First - changed searchform php from:
Code:
<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<input type="text" class="field" name="s" value="<?php esc_attr( the_search_query() ); ?>" />
	<input type="submit" class="submit" name="submit" value="search" />
</form>
to
Code:
<form method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<input type="text" class="field" name="s" value="<?php esc_attr( the_search_query() ); ?>" />
	<input type="submit" class="submit" name="submit" value="">
</form>
Next added a few lines to CSS and removed background from ".widget .searchform .field"

Code:
.widget .submit {
display: inline-block;
cursor: pointer;
margin: 0;
border: 0 solid #ddd;
border-radius: 3px;
padding: 0;
width: 26px;
height: 28px;
position: absolute;
right: 0;
top: 0;
}

.widget .searchform .field {
	width: 					100%; 
	max-width: 				300px; 

}
You can see what I did here:
http://www.wood-furniture.biz/DecorTips/

I'm not a CODER. So - is it correct what I did?

Or - is there a better way to fix it?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add submit button to search box? wex Header configuration & styling 1 Mar 21, 2012 02:26 PM
Search Button with Search Box in header True Header configuration & styling 4 Aug 2, 2010 03:50 PM
Search Button Cali Header configuration & styling 7 Jul 23, 2009 08:43 PM
Search box has no button soonguy Header configuration & styling 2 Feb 10, 2009 04:04 PM


All times are GMT -6. The time now is 06:25 AM.


Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.