Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created December 31, 2018 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musilda/e6e23c2295181fe875d4d8f865fbe75e to your computer and use it in GitHub Desktop.
Save Musilda/e6e23c2295181fe875d4d8f865fbe75e to your computer and use it in GitHub Desktop.
<?php if ( ! is_active_sidebar( 'main-sidebar' ) ) : ?>
<div class="widget widget_search"><!--BEGIN #searchform-->
<form method="get" id="searchform" action="/">
<fieldset>
<input type="text" name="s" id="s" value="search" onfocus="if(this.value=='search')this.value='';" onblur="if(this.value=='')this.value='search';" />
<input type="submit" name="submit" value="" id="s-submit">
</fieldset>
<!--END #searchform-->
</form>
</div>
<?php else:
dynamic_sidebar( 'main-sidebar' );
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment