How can add organization schema into homepage?

How can I add organization schema into homepage?

https://schema.org/Organization

1 Like

Dear @PoojaPatel

Hope you are doing well. Add it where, exactly?

According to your reference link, here is one example of the scheme (microdata format):

<p itemscope itemprop="organization" itemtype="http://schema.org/Organization">
  <a href="http://npr.org" itemprop="url">
    <span itemprop="name">National Public Radio</span></a> has a sponsor:
        <span itemprop="sponsor" itemscope itemtype="http://schema.org/Organization">
          <a itemprop="url" href="http://www.example.com/GloboCorp">
          <span itemprop="name">GloboCorp</span></a>
        </span>.
</p>

If this is the case, you could add the schema to your theme template and put this where you would like it to be.

From your reference link, there are four different formats for this:

  • Without Markup
  • Microdata
  • RDFa
  • JSON-LD

So, it would appear, not being an expert in this scheme usage, you need to select a format for this schema and an exact location in the DOM of the page(s) you want it to exist (maybe in the footer?).

Reference:

https://schema.org/Organization

Thank you for quick reply.

I want to use JSON-LD schema.

  1. Which file I need to edit for add JSON schema code?

  2. For create organization JSON schema, How can i get data like organization name (website name), logo (website logo) and website URL?

Please guide me to implement schema.

Here’s a good example on how to add/modify the schema.org metadata
https://github.com/paviliondev/discourse-articles/tree/master/app/views/topics

Discourse uses erb template for crawler view which can be overriden from a plugin.

5 Likes