How can add organization schema into homepage?

How can I add organization schema into homepage?

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="">
  <a href="" itemprop="url">
    <span itemprop="name">National Public Radio</span></a> has a sponsor:
        <span itemprop="sponsor" itemscope itemtype="">
          <a itemprop="url" href="">
          <span itemprop="name">GloboCorp</span></a>

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

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?).


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 metadata
discourse-articles/app/views/topics at master · paviliondev/discourse-articles · GitHub

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