Home › Forums › Pro Support › Hide container when post list is empty › Reply To: Hide container when post list is empty
July 10, 2018 at 10:03 am
#5191
Keymaster
Give this a shot:
jQuery( document ).ready( function( $ ) {
if ( $( '#wpsp-no-results' ).length ) {
$( '#wpsp-no-results' ).closest( '.generate-sections-container' ).hide();
}
} );