Add a filter to the Cancel button in the search bar widget to add/modify an anchor
Closed this issue · 2 comments
rafaehlers commented
The search button of the search bar uses the anchor specified in the form action to scroll the page to the correct place, but the cancel button doesn't have this functionality.
floatytheastronaut commented
FreeScout #78077.
https://support.gravitykit.com/conversation/78077?folder_id=1
rafaehlers commented
add_filter( 'gk/gravityview/widget/search/clear-button/params', function ( $params ) {
$params['url'] .= '#some-hash';
return $params;
} );