How to remove search in main menu/nav bar

I tried this - but it did not work:

In Appearance > Customize > Additional CSS

/Search bar removal/
.nav-search {
display: none;
}

1 Like

I figured it out. Modified: public_html/wp-content/themes/shapely/header.php

Commented out the following:

<div class="module widget-handle search-widget-handle hidden-xs hidden-sm">
	<button class="search">
		<i class="fa fa-search"></i>
		<span class="title"><?php esc_html_e( 'Site Search', 'shapely' ); ?></span>
	</button>
	<div class="function">
		<?php
		get_search_form();
		?>
	</div>
</div>

Did the trick.

1 Like