Dumb SEO Questions

(Entry was posted by Neil Cheesma on this post in the Dumb SEO Questions community on Facebook, 01/20/2017).

Wordpress, hiding no post result

Does anyone know Wordpress enough to resolve this? When creating a category or tag `url/page` IF there are no posts within that Tag or Category the following message is displayed.... "Sorry, no content matched your criteria." Is it possible to prevent this message from being displayed? I have tried the following to the css file which works on IE and Firefox but NOT on Chrome or Opera. .archive-no-results .entry p{ display: none; }
This question begins at 00:46:12 into the clip. Did this video clip play correctly? Watch this question on YouTube commencing at 00:46:12
Video would not load
I see YouTube error message
I see static
Video clip did not start at this question

YOUR ANSWERS

Selected answers from the Dumb SEO Questions Facebook & G+ community.

  • Tom Gooden: Yeah - you can edit the archive template and just remove the statement.
  • David Ogletree: If you are using Genesis you can use this https://robincornett.com/empty-search-results/
  • Neil Cheesman: Which file needs editing for either of above?
  • Jeremy L. Knauff: You *should* be able to change it via function.php I assume you`re running on Genesis. Try adding this: add_filter( `genesis_noposts_text`, `leaven_change_search_text_one`, 10, 2 ); function leaven_change_search_text_one( $text ) { $text .= __( ` Would you like to try again?`, `leaven` ); $text .= get_search_form( false ); return $text; }
  • Tom Gooden: archive.php - but if you`re not familiar with PHP I wouldn`t recommend doing it yourself.

View original question in the Dumb SEO Questions community on Facebook, 01/20/2017).