Remove Sorry, no content matched your criteria in Genesis

Remove Sorry, no content matched your criteria in Genesis

Author: WP Sites

Date: March 4, 2020 

Category: Theme development, Tips and tricks, Tutorials

(advertorial)

wprssaggregator Remove Sorry, no content matched your criteria in Genesis

There’s at least 3 ways to remove the “Sorry, no content matched your criteria text” displayed when no posts exist for your query.

1. Add this line of PHP code in your page template or functions file.

remove_action( ‘genesis_loop_else’, ‘genesis_do_noposts’ );

2. If you’re modifying the Infinity Pro child theme by StudioPress which includes a custom loop, you can also remove the no posts text by adding the hook to the existing hooks in the page_team.php template file on line 62 like this :

$hooks = array( ‘genesis_loop_else’ );

3. Another way to remove

This is the first part of the original article by WP Sites.
Click here to read the full article in a new tab!

(advertorial)

toolset logo tag line white Remove Sorry, no content matched your criteria in Genesis

Remove Sorry, no content matched your criteria in Genesis

World of WordPress is hosted by:

Servebolt: next level high performance hosting.

While others try to add more components to their hosting to make it go faster, we decided to build our hosting cloud fast from the ground up. We did so by stripping out everything we knew was deadweight.