Browsing all articles tagged with search - Share Programming Tips
Insert your own Search option in your wordpress theme
While developing you own theme many times you don’t want to use the default search of the wordpress and you want your own search option which looks better and suits your site design.So if you want to insert your own search option in the theme instead of the default search its very easy to implement it.
Now lets do that in the wordpress theme,
First of all add one function in the functions.php file in your theme folder.
This function creates your search view.And add it to the wordpress site where ever you want.
So lets define that function in functions.php file,
function custom_search_form() { ?> <form method="get" class="" action="<?php bloginfo('home'); ?>/"> <p> <input type="text" value="" name="s" id="s" /> <input type="submit" value="Go" /> </p> </form> <?php } add_action('thesis_hook_header' , 'custom_search_form'); ?> |
Search in this website
our sponsors
latest comments
- Shah Dhaval on How to detect memory leakage in C program?
- ruunyytikkil on how can I write applications in C or C++ for Android?
- anonym on How to convert SQL to Excel in Php?
- Academic Projects and Tech interview on C programming interview questions and answers for freshers
- Motasim billah on List of all standard version of c language
Find us on Facebook
Top Authors
Find us on stackoverflow
Polls
Loading ...
My Bookmarks
- Audio/video Recorder & player application based on MATLAB
- check dependency of your binary
- defination of all standard c programming language function
- Great Question-Answer on c programming
- know what your c code means
- Limition of c programming language
- List of all version of c programming language
- Online c compiler
- php freelancing work
- some more stuff on C programming language
- Volatile Keyword in Embedded System
- Write Android application in c language