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?

505 posts
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 4-5 years
  • 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

1148 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
  • Envato Studio (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.

2566 posts Put a Donk On It
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Exclusive Author
  • Attended a Community Meetup
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 200 and 499 users
+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?

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

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

yup he has them right here

by
by
by
by
by
by