Title: search troubles
Last modified: August 22, 2016

---

# search troubles

 *  Resolved [Florin Oprea](https://wordpress.org/support/users/florinopreaeu/)
 * (@florinopreaeu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/search-troubles/)
 * Very nice theme. But the search function does not work correctly. If you try 
   to search for a word that does not exist, the search never ends.
 * [http://florinoprea.eu/?s=rferfef](http://florinoprea.eu/?s=rferfef)
    [http://www.amigosdegroucho.com/?s=cdcdscsc](http://www.amigosdegroucho.com/?s=cdcdscsc)
   [http://montagnes-despoir.com/emmanuel/?s=jhkjhk](http://montagnes-despoir.com/emmanuel/?s=jhkjhk)
   [http://demo.wpmultiverse.com/griffin/?s=dcdwcwdc](http://demo.wpmultiverse.com/griffin/?s=dcdwcwdc)
 * PS I also found sites with this theme where searching is working fine.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Florin Oprea](https://wordpress.org/support/users/florinopreaeu/)
 * (@florinopreaeu)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/search-troubles/#post-5819372)
 * This is the solution. For 404 error too.
    Change the following lines:
 * **content-none.php**
    <div id=”post-content”> –> <div id=”post-content” _class
   =”teaser” style=”width:100%;”_>
 * **wp-content/themes/griffin/assets/js/griffin.js**
 * if($(‘body’).hasClass(‘blog’) || $(‘body’).hasClass(‘search-results’) || $(‘body’).
   hasClass(‘archive’)) {
    –> if($(‘body’).hasClass(‘blog’) || $(‘body’).hasClass(‘
   search-results’) _|| $(‘body’).hasClass(‘search-no-results’) || $(‘body’).hasClass(‘
   error404’)_ || $(‘body’).hasClass(‘archive’)) {

Viewing 1 replies (of 1 total)

The topic ‘search troubles’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/griffin/1.0.9/screenshot.png)
 * Griffin
 * [Support Threads](https://wordpress.org/support/theme/griffin/)
 * [Active Topics](https://wordpress.org/support/theme/griffin/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/griffin/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/griffin/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Florin Oprea](https://wordpress.org/support/users/florinopreaeu/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/search-troubles/#post-5819372)
 * Status: resolved