@consciousness: For this, you’ll need to create a child theme. You can find more detail on creating child theme HERE. Then in you child theme’s functions.php
, and add the following CSS.
function catchevolution_child_search_filter( $query ) {
if ( ! $query->is_admin && $query->is_search && $query->is_main_query() ) {
$query->set( 'post__not_in', array( YOUR_PAGE_ID_HERE) );
}
}
add_action( 'pre_get_posts', 'catchevolution_child_search_filter' );
Note: Please replace “YOUR_PAGE_ID_HERE” in the above code with the id of page you want to remove. If you wish to excluded more that one page, separate it with comma.
Regards,
Mahesh