Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Fix Google discussion forum structured data schema error

admin

admin

ADMIN
++
Puan 1
Çözümler 0
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
Kod:
<xf:if is="$includeMicrodata">
 <meta itemprop="parentItem" itemscope itemid="{{ link('canonical:threads', $thread) }}" />
</xf:if>
replace with
Kod:
<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>

Test: https://5lik.xyz/zGThQ

1771764963760.png
 
Help Users

You haven't joined any rooms.

You haven't joined any rooms.

Tema özelleştirme sistemi

Bu menüden forum temasının bazı alanlarını kendinize özel olarak düzenleye bilirsiniz

Geri