by

Menambahkan Form Search di Menu WordPress

Buat file searchform.php di root tema kamu!

<form method="get" class="form-search" action="<?php echo home_url( '/' ); ?>">
	<div class="row">
		<div class="col-lg-12">
			<div class="input-group">
				<input type="text" class="form-control search-query input-sm" name="s" placeholder="<?php esc_attr_e('search here …', 'bootstrapwp'); ?>" />
				<span class="input-group-btn">
					<button type="submit" class="btn btn-warning btn-sm" name="submit" id="searchsubmit" value="<?php esc_attr_e('Search', 'bootstrapwp'); ?>"><?php _e('<span class="glyphicon glyphicon-search"></span>', 'bootstrapwp'); ?></button>
				</span>
			</div>
		</div>
	</div>
</form>
Please follow and like us:

Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

News Feed