We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Hide container when post list is empty Reply To: Hide container when post list is empty

#5191
Tom
Keymaster

Give this a shot:

jQuery( document ).ready( function( $ ) {
    if ( $( '#wpsp-no-results' ).length ) {
        $( '#wpsp-no-results' ).closest( '.generate-sections-container' ).hide();
    }
} );