How to Remove Author Name And Date Post Without Error in Blog Data Structure - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

How to Remove Author Name And Date Post Without Error in Blog Data Structure

How to Remove Author Name And Date Post Without Error in Blog Data Structure - Every blog post of course has author or author responsible for posting made. Author post is displayed on the blog page using meta tag which is the most basic element of SEO. For that the meta tag author is very important in the post.

Meta author tags should not be omitted from posts because if omitted it will cause error data structures that indicate the loss of important elements of a post.

But some bloggers have a reason to remove or delete the name of the author and the date of posting on the blog. Suppose with aesthetic reasons, remove the name of the author and the date of posting on the homepage to make the post look at the homepage more simple or remove the name of the author and the date of posting on the static page to be more neat.

How to Remove Author Name And Date Post Without Error in Blog Data Structure

But of course to remove the name of the author and the date of this post can not be done simply because it will cause error blog data structure. For more details, here I will discuss it for all of us below:

1. On Page Index And Static
This means that it only shows the author name only on the posting page.
Please copy the following code:

<b:includable id='author-post' var='post'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<span class='post-author vcard' itemprop='author' itemscope='itemscope' itemtype='https://schema.org/Person'>
<meta expr:content='data:post.author' itemprop='name'/>
<meta expr:content='data:post.authorProfileUrl' itemprop='url'/>
<meta expr:content='data:post.authorPhoto.url' itemprop='image'/>
</span>
<span class="vcard">
  <abbr class='fn' expr:title='data:post.author'/>
</span>
<abbr class='updated' expr:title='data:post.timestampISO8601'/>
<meta expr:content='data:post.timestampISO8601' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<span class='post-author vcard' itemprop='author' itemscope='itemscope' itemtype='https://schema.org/Person'>
By: <span class='fn author'><a class='g-profile' expr:href='data:post.authorProfileUrl' itemprop='url' rel='author noopener' title='author profile'><span itemprop='name'><data:post.author/></span></a></span>
<meta expr:content='data:post.authorPhoto.url' itemprop='image'/>
</span>
<abbr class='updated' expr:title='data:post.timestampISO8601'/>
<meta expr:content='data:post.timestampISO8601' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>
</b:if>
</b:includable>

Then just leave the code below under the following code:

<b:includable id='main' var='top'>
..............
..............
..............
</b:includable>

Then please replace the code that displays the name of the author on your blog template with the code below.

<b:include data='post' name='author-post'/>

And also delete the code that displays the date of posting.

If in your blog template use conditonal tags to display author names for index pages, post pages, and static pages, please replace them with the code.

2. Eliminate On All Pages
Please copy the following code:

<b:includable id='author-post' var='post'>
<span class='post-author vcard' itemprop='author' itemscope='itemscope' itemtype='https://schema.org/Person'>
<meta expr:content='data:post.author' itemprop='name'/>
<meta expr:content='data:post.authorProfileUrl' itemprop='url'/>
<meta expr:content='data:post.authorPhoto.url' itemprop='image'/>
</span>
<span class="vcard">
  <abbr class='fn' expr:title='data:post.author'/>
</span>
<abbr class='updated' expr:title='data:post.timestampISO8601'/>
<meta expr:content='data:post.timestampISO8601' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>
</b:includable>

Then please save the code below under the following code:

<b:includable id='main' var='top'>
..............
..............
..............
</b:includable>

Then please replace the code that displays the name of the author on your blog template with the code below.

<b:include data='post' name='author-post'/>

And also delete the code that displays the date of posting.

If in your blog template use conditonal tags to display author names for index pages, post pages, and static pages, please replace them with the code.

But of course this is not absolute, every blog template can have different codes, so please adjust with your blog template if there is a display that changes or does not match.

Then please check your blog's data structure here.

A few articles that I have made this, Good luck and hopefully useful.

Post a Comment for "How to Remove Author Name And Date Post Without Error in Blog Data Structure"