Skip to content

Instantly share code, notes, and snippets.

@miniMAC
Created September 7, 2017 12:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miniMAC/094d1024006de6adbd4adc829513941e to your computer and use it in GitHub Desktop.
Save miniMAC/094d1024006de6adbd4adc829513941e to your computer and use it in GitHub Desktop.
<?php
/**
* YourTheme
*
* @package YourTheme
*
* To include that file: get_template_part('live','search');
*/
?>
<div id="live-search-faux-input"><input type="text" placeholder="<?php _e('Search...','yourtheme') ?>"></div>
<div class="live-search-modal">
<div class="live-search-container text-center">
<div class="live-search-close">X</div>
<form id="live-search-form">
<input type="text" id="live-search-input" name="live-search" placeholder="<?php _e('Search...','yourtheme'); ?>">
<button class="live-search-reset-btn" type="reset">X</button>
</form>
<ul class="live-search-results"></ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment