You can refer to this article on Yoast.com that will help you implement structured data on your website — https://yoast.com/structured-data-schema-ultimate-guide/
Thread Starter
Craig
(@divithemeexamples)
i am looking at https://yoast.com/google-search-sitelinks/
i see my search results in step 1 ok, and step 2 says code should be automatically added, but i dont see any code in my <!– / Yoast SEO plugin. –>
thanks
Hi Craig,
Are you using the latest version of Yoast SEO, 8.1.2? If you’re using an older version, please update and let us know if the issue persists. If it does, please include a link to your website so we may further investigate it.
We are looking forward to hearing from you.
Thread Starter
Craig
(@divithemeexamples)
yes, latest version.
you can see the source for one of my posts here
By default, Yoast SEO adds the knowledge graph schema on the front page when adding the company info. We looked at your site’s front page https://www.divithemeexamples.com/ and we can confirm that Yoast SEO is generating the necessary schema correctly.
Thread Starter
Craig
(@divithemeexamples)
ok, thanks. what i see on another site on their blog posts is below, but this is not on my site. its part of the yoast meta but not sure how it is getting added on their site…looks like site info + social info which i have included in settings already?
<script type=’application/ld+json’>{“@context”:”http:\/\/schema.org”,”@type”:”WebSite”,”@id”:”#website”,”url”:”https:\/\/xxxxxx.com\/”,”name”:”xxxxx”,”potentialAction”:{“@type”:”SearchAction”,”target”:”https:\/\/xxxxx.com\/?s={search_term_string}”,”query-input”:”required name=search_term_string”}}</script>
<script type=’application/ld+json’>{“@context”:”http:\/\/schema.org”,”@type”:”Organization”,”url”:”https:\/\/xxxxx.com\/blog\/”,”sameAs”:[“https:\/\/www.facebook.com\/xxxxx\/”,”https:\/\/www.youtube.com\/channel\/xxxxx”,”https:\/\/twitter.com\/xxxxx”],”@id”:”#organization”,”name”:”xxxxx”,”logo”:”https:\/\/xxxxx.com\/wp-content\/uploads\/logo.png”}</script>
<!– / Yoast SEO plugin. –>
Please, make sure that you’ve added company info and social profiles into the Yoast SEO plugin settings and that should bring the relevant schema you’re referring here.
We can confirm that the relevant schema is outputting on this page — https://www.divithemeexamples.com/managing-your-divi-api-keys/
If you use our Yoast SEO plugin, the necessary code is already built in. Now you just have to wait and see if Google deems your site eligible and shows a search box.
Thread Starter
Craig
(@divithemeexamples)
i updated something and seems to be working now, thanks. waiting for G now 😉