Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amaholo

    (@amaholo)

    Hi Tobias,

    I put the code in, however it was running before all other scripts had finished running which resulted in (blank) output.

    So modified the code to run as follows:

    <script>
    jQuery ( function ( $ ) {
    $(document).ready(function(){
    const clear_button = ‘<button class=”clear-button dt-button”>Clear</button>’;
    const $column_filter_widgets = $( ‘.column-filter-widgets’ );
    $column_filter_widgets
    .append( clear_button )
    .on( ‘click’, ‘.clear-button’, function() {
    $column_filter_widgets.find( ‘.filter-term’ ).click();
    } );
    });
    } );
    </script>

    Thank you for your help!
    Much appreciated!

    Thread Starter amaholo

    (@amaholo)

    Hi Tobias,

    Thank you so much for the prompt response!
    I am using Divi and inserting via that channel, so no short codes are being used.

    Any other suggestion where to place the code?

    Thanks
    Quintin

Viewing 2 replies - 1 through 2 (of 2 total)