Last active
August 29, 2015 14:14
-
-
Save anythinggraphic/aad1c9921c51f081e19a to your computer and use it in GitHub Desktop.
AgentPress: Genesis Child Theme - Site Search With No Results Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add text/html if there are no listings found | |
// http://anythinggraphic.net/horizontal-rule-button-in-wordpress | |
jQuery(function($) { | |
if( $('body.post-type-archive-listing #content .listing').length ) { | |
} else { | |
$('body.post-type-archive-listing .archive-description, body.post-type-archive-listing .taxonomy-description').hide(); | |
$('body.post-type-archive-listing #content').append("<h3>No listings found</h3><p>We're sorry. We don't have properties that meet your current search requirements. Please search again using the search pull downs above or browse <a href='http://www.yourdomain.com/listings'>all our properties in South Jersey.</a></p><br>"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment