Search widget
Support Area › Forums › Foxy › Search widget
Tagged: Search, searchform, widget
- This topic has 4 replies, 3 voices, and was last updated 12 years, 3 months ago by Terence.
-
AuthorPosts
-
January 13, 2012 at 10:46 #4654Antons BungisParticipant
Bill!
What is the best way to make SEARCH widget look like in this (forum) page (on right sidebar) – just search field full sidebar wight with magnifier icon in it (no search button beside) and e.g. text ‘Search here…’ in it – witch disepears, when clicked there.
Cheers,
Antons
P.S. in other themes there is a searchform.php to modify this – could not find it in FOXY.
January 13, 2012 at 11:04 #4655Bill RobbinsModeratorYou’re welcome to add a searchform.php file to the theme if you’d like to. There is a page in the WordPress Codex that discusses it http://codex.wordpress.org/Function_Reference/get_search_form.
There are also instructions that explain how to control it via the themes functions.php file if you’d rather go that way.
For Foxy, I choose to hide the label and style the search box to match instead of modifying its actual functionality.
January 18, 2012 at 04:00 #4724Antons BungisParticipantBill,
page is http://web.umt.lv/
searchform.php
form action=”/” method=”get”
fieldset
input type=”text” class=”field” name=”s” id=”s” placeholder=”?php esc_attr_e( ‘Meklējamā frāze…’ ); ?” /
/fieldset
/formp.s. removed all < and >
how to put my search.png (magnifier image) to show inside search window like in this support page search
BR,
Antons
January 18, 2012 at 09:37 #4734Bill RobbinsModeratorGreat job with the searchform.php. To add a magnifying glass to your search form, paste this to the very bottom of your style.css file:
input#s {
width: 140px;
padding-left: 20px;
background: #fff url(https://support.organizedthemes.com/wp-content/themes/reforum/images/icons/search-submit.png) no-repeat left center;
}The only thing you’ll need to do is swap out the https://support.organizedthemes.com/wp-content/themes/reforum/images/icons/search-submit.png for the URL to the image you’d like to use.
If you have any trouble, let me know.
January 18, 2012 at 20:19 #4747TerenceParticipantThere’s some interesting psychology to do with search boxes on websites and it goes like this…
Since I have a limited amount of high-quality content on my website, a search-form can aggravate more than it helps.
Why?
Because if I had a search form, when people used it, they’d be more likely to be let down than satisfied. It’s a simple numbers game. Since I have a limited amount of high-quality content, the chances of people finding an article for their every desire is low.
And that’s why I don’t have a search form on my website. You don’t want to put people in the position of feeling bad when browsing your site. People who feel bad about your site generally don’t buy…
You may be different and have tons of high quality content, but I don’t. At least not yet. And when that changes, so will my use of a search form, so thanks for the ability to add one.
-
AuthorPosts
- The topic ‘Search widget’ is closed to new replies.