Skip to content

Instantly share code, notes, and snippets.

@bluemango
Created September 30, 2011 10:09
Show Gist options
  • Save bluemango/1253340 to your computer and use it in GitHub Desktop.
Save bluemango/1253340 to your computer and use it in GitHub Desktop.
Add search box on empty search results
$(document).ready(function() {
if (
($('.site-search #screensteps-inner-content').length > 0) || ($('.manual-search #screensteps-inner-content').length > 0)
)
{
if ($('#found-lessons').length < 1)
{ $('#screensteps-inner-content').append("<h2>Submit a ticket</h2>") }
}
});
// Just replace <h2>Submit a ticket</h2> with the actual HTML you would like to insert.
@bluemango
Copy link
Author

Just replace

Submit a ticket

with the actual HTML you would like to insert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment