Hi @jsearles
I am also facing the same problem with search box schema code. I fixed the error in code with your suggested code. But now I want to add this to my website. As you mentioned in your answer to add code
OK – I tried to comment out lines 217 through 242 and that shut down my site. So I reinstalled WordPress-SEO to put the class-json-ld.php back to it’s original status.
Then I added this code to my functions.php in my child theme
add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ );
Success! No errors messages now.
I need your help to add code.
I am using eleven40 child theme and Genesis. But I unable to find the existing code for application/ld+json. Please can you help me where I can find and edit this code
Thank You