332 posts
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
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?

901 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
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
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
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.

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

^ lol

1 post
  • Has been part of the Envato Community for over 3 years
kyrul says

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

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

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

yup he has them right here

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by