wikislo
Registered
- Thread starter
- #1
This is how I solved the markup errors with the latest Google update as mentioned here: Implemented - Markup improvements for Google
edit template: post_macros
find paragraph
replace with
validator.schema.org

edit template: post_macros
find paragraph
HTML:
<xf:if is="$includeMicrodata">
<meta itemprop="parentItem" itemscope itemid="{{ link('canonical:threads', $thread) }}" />
</xf:if>
replace with
HTML:
<xf:if is="$includeMicrodata">
<meta itemprop="parentItem" itemscope itemid="{{ link('canonical:threads', $thread) }}" />
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
<meta itemprop="name" content="{{ $post.User.username ?: $post.username }}" />
<meta itemprop="url" content="{{ link('canonical:members', $post.User) }}" />
</div>
<meta itemprop="text" content="{{ $post.message }}" />
<meta itemprop="url" content="{{ link('canonical:posts', $post) }}" />
<meta itemprop="name" content="Post by {{ $post.User.username ?: $post.username }}" />
</xf:if>
Schema Markup Validator
