Changing the “Filters” toggle button position

If you need to adjust the “Filters” toggle button position, you can choose between the following 2 ways:

1. If you have a theme of your own, or use a child theme, please add the following filter to the theme’s functions.php file:

add_filter( 'awf_js_data', function( $js_data ) {
  $js_data['togglable_preset']['insert_btn_before_container'] = '#main';
  return $js_data;
} );

2. You can achieve the same effect via JavaScript (which can be inserted in annasta Filters > Plugin settings > Custom JavaScript or anywhere else you prefer):

if( 'undefined' !== typeof( awf_data ) ) {
  awf_data.togglable_preset.insert_btn_before_container = '#main';

Whichever way you choose, please replace the “#main” value of the insert_btn_before_container with the needed jQuery selector.