332 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • United States
CadenGrant says

Is there anyway to customize the output of the default WP widgets for your theme?

For instance, on the searchbar, I don’t want it to display the “search” button or the “Search for:” text.

Instead I want to use javascript to put text inside the search bar (To search, type and hit enter) so when they click on it it removes the text, etc. I know how to do this part but I don’t know how to edit the default searchbar widget output.

Anybody know how?

454 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • United Kingdom
Gareth_Gillman says

Create a searchform.php and put in your own custom search form, then call the search form by using

<?php get_search_form(); ?>

More info

1038 posts
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Microlancer Beta Tester
  • United States
fillerspace says

Instead I want to use javascript to put text inside the search bar (To search, type and hit enter) so when they click on it it removes the text, etc. I know how to do this part but I don’t know how to edit the default searchbar widget output.

For backwards compatibility for people with Javascript disabled, you should remove the search button with Javascript and then bind to click, focus, change events, etc. With Javascript disabled it will just look like a search form.

2509 posts Put a Donk On It
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Attended a Community Meetup
  • Referred between 100 and 199 users
  • Contributed a Tutorial to a Tuts+ Site
+5 more
ThemeProvince says

^ lol

1 post
  • Has been a member for 3-4 years
kyrul says

phoenix : could u have any free premium theme for wordpress?

3119 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley says

phoenix : could u have any free premium theme for wordpress?

yup he has them right here

by
by
by
by
by
by