Hello Friends!
Hope you are doing well 🙂
If you want to edit the html of default search form in your wordpress website, then don’t warry 🙂 just add my code in your theme function file.
/******************************************** * Start search form hookes part here *********************************************/ function my_search_form( $form ) { $form = '<form role="search" method="get" id="searchform" class="searchform" action="' . home_url( '/' ) . '" > <div> <input type="text" value="' . get_search_query() . '" name="s" onblur="if (this.value == '') {this.value = 'Search';}" onfocus="if (this.value == 'Search') {this.value = '';}" id="setop"/> <input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search' ) .'" /> </div> </form>'; return $form; } add_filter( 'get_search_form', 'my_search_form' ); /******************************************** * End hookes part here *********************************************/
Enjoy Code! | Raghunath Blog
Your style is unique compared to other people I have read stuff from.
Many thanks for posting when you have the opportunity, Guess I’ll
just book mark this page.
LikeLike
Thanks 🙂
LikeLike
Hello, i read your blog from time to time and i own a similar
one and i was just curious if you get a lot of
spam remarks? If so how do you protect against it,
any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any help is very
much appreciated.
LikeLike
Excellent goods from you, man. I have take note your stuff prior to and you are just too wonderful.
I actually like what you have received here, really like what you are stating and the way
in which wherein you are saying it. You’re making it entertaining and
you continue to take care of to keep it sensible. I cant wait to learn much more from you.
That is actually a wonderful website.
LikeLike
Thanks 🙂
LikeLike
There’s certainly a great deal to learn about
this issue. I like all of the points you’ve made.
LikeLike
Thanks 🙂
LikeLike
Hello my family member! I want to say that this post is awesome, great written and come with
almost all significant infos. I would like to see extra posts like this .
LikeLike
Thanks 🙂
LikeLike
I think the admin of this website is actually working hard
in support of his site, because here every stuff is
quality based material.
LikeLike
Not, this is a default functionality.. 🙂
LikeLike
Hi there Dear, are you actually visiting this web page daily, if so then you will
without doubt obtain pleasant knowledge.
LikeLike