Title: &#8220;SearchAction&#8221; object cannot be nested inside a &#8220;WebSite&#8221; object
Last modified: February 14, 2020

---

# “SearchAction” object cannot be nested inside a “WebSite” object

 *  Resolved [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/searchaction-object-cannot-be-nested-inside-a-website-object/)
 * Hi Support,
 * We are using Yoast SEO plugin, but we got an issue below from Google Search console:
   –
   Sitelinks searchbox issues detected – “SearchAction” object cannot be nested 
   inside a “WebSite” object
 * How can we fix this? Is there a way we can disable Sitelinks in Yoast SEO settings?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [amboutwe](https://wordpress.org/support/users/amboutwe/)
 * (@amboutwe)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/searchaction-object-cannot-be-nested-inside-a-website-object/#post-12466844)
 * Another user reported this warning so it’s not something we’ve seen before. Without
   more information about the error, I can only guess as to the cause.
 * Is the error specific to a certain URL or does it happen for your entire site?
   
   Have you customized the schema output? Do any plugins you use integrate with 
   Yoast schema? Does Google Search Console provide more information (like a link
   to learn more) about this error?
 * That said, you or your developer can use the `disable_wpseo_json_ld_search` filter
   and return true to disable the search site links schema.
 * `add_filter('disable_wpseo_json_ld_search', '__return_true');`
 * Typically code snippets are added to your theme’s functions.php file. If you’re
   not familiar with using code snippets, these articles have wonderful advice:
   
   [http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/](http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/)
   [http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/](http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/)
 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/searchaction-object-cannot-be-nested-inside-a-website-object/#post-12490640)
 * Closed due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“SearchAction” object cannot be nested inside a “WebSite” object’ is 
closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [Google Search Console](https://wordpress.org/support/topic-tag/google-search-console/)
 * [sitelinks](https://wordpress.org/support/topic-tag/sitelinks/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/searchaction-object-cannot-be-nested-inside-a-website-object/#post-12490640)
 * Status: resolved