2

Should structured data for the search box and logo only be in the main page of website or should be in all of the pages? and why?

My goal is to use them to get rich snippets in Google.

8
  • 1
    I edited your question to correct your terminology. "Rch snippets" are the enhanced display in the Google search results. You can't put rich snippets on your pages. You put structured data into your pages so that Google can display rich snippets for your site in the search results. Sep 30, 2021 at 11:55
  • Is your site static HTML or is it built with a CMS like Wordpress? Sep 30, 2021 at 21:21
  • @MikeCiffone static HTML.
    – mmdeshoon
    Oct 1, 2021 at 7:40
  • @mmdeshoon do you know how to code in PHP? Oct 1, 2021 at 14:05

1 Answer 1

1

Google tells us:

Relevance

Your structured data must be a true representation of the page content.

Location

Put the structured data on the page that it describes, unless specified otherwise by the documentation.

Thus, you can easily set the markup for the search box and logo on all pages that have a search box and a logo in the main (visible to users) content.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.