Code

Google Article Schema

Add Google article schema to your Webflow site with this custom script. This allows you to let Google know that there's a relevant article and the necessary information to markup via a schema.

Google Article Schema preview

Add Google article schema to your Webflow site with this custom script. This allows you to let Google know that there's a relevant article and the necessary information to markup via a schema.

How to add it

  1. Add the code to your pages head custom code section
  2. Update the code with relevant CMS or article information

The code

Javascript
                      <!-- Add to head section -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.YOURDOMAIN/FOLDER/SLUG"
  },
  "headline": "YOUR-TITLE",
  "image": "IMAGE-URL",
  "datePublished": "DATE",
  "dateModified": "DATE",
  "author": {
    "@type": "Organization",
    "name": "CLIENT NAME"
  },
   "publisher": {
    "@type": "Organization",
    "name": "CLIENT NAME",
    "logo": {
      "@type": "ImageObject",
      "url": "STATIC LOGO URL"
    }
  },
  "description": "DESCRIPTION"
}
</script>

                    

Browse similar code snippets

Categories

Language

More from Corey Moen

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →