Home Forums Theme support How to add a search bar in menu and header

This topic contains 3 replies, has 2 voices, and was last updated by  7Theme Support 1 year, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Hi,

    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.

    Thanks

    Hi,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.