Hi Leo,
thanks it is fair.
Actually i find a way to make it.
Add below code to funtions.php and add [cleanthemall] shortcode under your selections widget.
Maybe some others may need it.
I just couldn’t solve extra line here. https://prnt.sc/20e69c7
If someone give me suggestion we can make the code perfect ๐
/*Clean active filters, Use this as a shortcode [cleanthemall]*/
add_shortcode( 'cleanthemall', 'cleanthemall' );
function cleanthemall() {
$filterreset = $_SERVER['REQUEST_URI'];
if ( strpos($filterreset,'?filter_') !== false | strpos($filterreset,'?min_price') !== false | strpos($filterreset,'?max_price')) {
$filterreset = strtok($filterreset, '?');
echo '<div class="clear-filters-container"><a id="woo-clear-filters" href="'.$filterreset.'">Clean All Filters</a></div>';
}
}