Tagged: search bar in menu & header
I am using pixelstore theme and wanted to know how to show a search bar in the menu and in the header? I guess search bars don’t come by default with the theme. This is urgent. Kindly help.
unfortunately, that’s not so easy. Do you know how to edit PHP files in WordPress? Because for both, the search field in the header and the search field in the menu you need to edit PHP files.
Yes, I know how to edit PHP. If you can provide the code, I can do it myself. Please provide the code with instructions and will get it done my self. Thanks in advance.
Ok, you can use this shortcode:
<?php echo do_shortcode( "[search]" ); ?>
You can open the file header.php in the root of the theme directory and place the shortcode where you want to have the search function.
You must be logged in to reply to this topic.