Skip to content

Instantly share code, notes, and snippets.

@Pavracer
Created November 5, 2017 18:59
Show Gist options
  • Save Pavracer/3af058856df398fc00873255123a82db to your computer and use it in GitHub Desktop.
Save Pavracer/3af058856df398fc00873255123a82db to your computer and use it in GitHub Desktop.
copy_search_to_top
<script>
jQuery( document ).ready(function() {
jQuery("ul.et-social-icons").append('<div id="et_top_search" ><span id="et_search_icon"></span></div>');
jQuery("ul.et-social-icons #et_search_icon").click(function(){jQuery('#main-header #et_top_search').trigger('click');});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment