• Hi there!

    I recently launched my site http://www.shiumaieats.com and I’ve been trying to figure out how to add a search bar next to my main menu items at the top right corner.

    Can I edit this in Custom CSS? I’m not familiar with editing PHP.

    I appreciate anyone’s help. Thank you in advance!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello shiumai,

    In order to add the search bar next to navigation you need to add the below php function in your theme header.php file inside of div having class=”header-fill” as its php function you cant do anything by editing the css files.

    <?php get_search_form( $echo ); ?>

    Thanks

    Thread Starter shiumai

    (@audreyshiu)

    Hi Clarion,

    Thank you for your advice! Please correct me if I’m wrong with the following:

    In general, in order to edit the header.php and footer.php files, I need to edit code via Appearance > Editor. However according to my theme developer, I am not supposed to edit here because any theme updates will override changes I make.

    So I downloaded the Insert Headers and Footers plugin and inserted your code to the header settings. I don’t see any search bar after uploading and refreshing. Did I go about this the correct way?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add SEARCH function on TOP navigation bar’ is closed to new replies.