Custom Structured Metadata JSON Blogger Latest Version 2018 - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

Custom Structured Metadata JSON Blogger Latest Version 2018

Custom Structured Metadata JSON Blogger Latest Version - There are at least two ways to install structured metadata in the most popular blog / website used. Namely with Microdata and JSON format. Each way of mounting structured metadata is different. In essence, structured metadata is intended for Rich Snippet optimization of a blog / website for the ideal search results in a niche or blog discussion.

Structured data with the Microdata format are more often embedded and make use of the HTML selector and markup structurally over the HTML itself. Just stay in the paste-only on the markup you want to serve to form the ideal rich snippet (also meet the specifications).

Custom Structured Metadata JSON Blogger Latest Version 2018

If structured data with JSON format, it is served separately. Because it is wrapped into one script. Structured data with JSON format can be placed anywhere, either inside <head> and inside <body>.

An example of this is that we often see a shared meta tag, under the code <head>.
<script type='application/ld+json'>{ "@context": "http://schema.org", "@type": "WebSite", "@id": "#website", "url": "<data:blog.homepageUrl/>", "potentialAction": { "@type": "SearchAction", "target": "<data:blog.homepageUrl/>search?q={search_term}", "query-input": "required name=search_term" } }</script>

By default, in the latest version of Blogger's metadata structured syntax (layout version 3), use the JSON format. Covered by this code:
                   <b:includable id='postMeta' var='post'>
<b:include data='post' name='postMetadataJSON'/>
</b:includable>

The order for the parameters to work, then called with the following code, is placed under the code <article class = 'post-outer-container'>
<b:include data='post' name='postMeta'/>

If we use the code, it means we have received a broad chest that structured data on our blog appear as it is presented in the script.

For those who still want to use structured metadata with JSON format but still can modify according to taste, please replace this code:
<b:include data='post' name='postMetadataJSON'/>

With the following code:
       <!--<b:include data='post' name='postMetadataJSON'/> // aaih...disebelah itu defaultnya -->
<script type='application/ld+json'>
{
    "@context": "http://schema.org",
    "@type": "BlogPosting",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "<data:post.url.canonical.jsonEscaped/>"
    },
    "headline": "<data:post.title.jsonEscaped/>",
    "description": "<b:eval expr='(data:post.body snippet { length: 255, links: false, linebreaks: false, ellipsis: true }).jsonEscaped'/>",
    <b:if cond='data:view.isSingleItem'>"articleBody": "<b:eval expr='(data:post.body).escaped'/>",</b:if>
    "datePublished": "<data:post.date.iso8601.jsonEscaped/>",
    "dateModified": "<data:post.lastUpdated.iso8601.jsonEscaped/>",
    "image": {
        "@type": "ImageObject",
        "url": "<b:eval expr='(data:post.featuredImage ? resizeImage(data:post.featuredImage, 1200, "1200:630") : "URL-IMAGE-IF-POST-NO-IMAGE").jsonEscaped'/>",
        "height": <b:eval expr='data:post.featuredImage ? 630 : 348'/>,
        "width": 1200
    },
    "publisher": {
        "@type": "Organization",
        "name": "Blogger",
        "logo": {
            "@type": "ImageObject",
            "url": "URL-LOGO-OR-BANNER-BLOG",
            "width": 206,
            "height": 60
        }
    },
    "author": {
        "@type": "Person",
        "name": "<data:post.author.name.jsonEscaped/>",
        "url": "<data:post.author.profileUrl.jsonEscaped/>",
        "image": "<data:post.author.authorPhoto.image.jsonEscaped/>"
    }
}
</script>

Just edit the caption that is capitalized. If you want to change the format can also.

That's the tips I've shared in about Custom Structured Metadata JSON Blogger Latest Version (Blogger Layout Version 3), Hopefully with this short enough article can be useful and good luck.

1 comment for "Custom Structured Metadata JSON Blogger Latest Version 2018"

  1. bro. blogspot.com subdomain se he rank kara diya . congrats

    ReplyDelete

Provide comments relevant to the posted articles and provide critiques and suggestions for the progress of the blog