0 ) { $query->set('paged', intval($_GET['product-page'])); } } , 900000 ); /** * This filter should return true or false depending on whether the Element is to be displayed, * but we use it to override the search Element. This is not entirely the correct way to use a filter, * but we have no other way to override the Element's rendering function. */ add_filter( 'bricks/element/render', function ( $render_element, $element ) { global $dgwtWcasBricksStyles; if ( ! $render_element ) { return $render_element; } if ( ! isset( $element->block ) || $element->block !== 'core/search' ) { return $render_element; } if ( isset( $element->settings['searchType'] ) && $element->settings['searchType'] === 'overlay' ) { echo do_shortcode( '[fibosearch layout="icon"]' ); if ( ! empty( $element->settings['iconTypography']['color']['hex'] ) ) { ob_start(); ?>