Tagged: breadcrumbs, post count, search, search results count
Hi I need to remove the search results count that appears in the breadcrumbs on the s? page.
Can you provide me with the location so i can comment it out?
Hey Thomas,
Please try the following in Quick CSS under Enfold->General Styling:
.search-results .extra-mini-title {
display: none;
}
Best regards,
Rikard
Thanks Rikard,
I was hoping to alter the template to prevent this from generating – speeding up the search page. Just to try and save on the number of queries generated on the search page.
If you are able to provide the file I need to change and the query that needs removing I’d prefer to do that if possible.
Let me know if this is possible.
Hi,
Thank you for the update.
The function avia_which_archive, responsible for rendering the search count, is located in the enfold/framework/php/function-set-avia-frontend.php file. You can either override this function directly or utilize the avf_which_archive_output filter to modify the breadcrumb title on the search results page.
Example:
add_filter('avf_which_archive_output','avf_which_archive_output_mod', 10, 3);
function avf_which_archive_output_mod($output)
{
if(is_search()){
$output = __( 'Search results for:', 'avia_framework') . ' ' . esc_attr( get_search_query() );
}
return $output;
}
Best regards,
Ismael