هيلبرنت | Helpernt

هيلبرنت | Helpernt (https://www.helpernt.com/vb/index.php)
-   ركن تطوير المواقع (https://www.helpernt.com/vb/forumdisplay.php?f=88)
-   -   [blogger] اصلاح خطأ author الموجودة فى أدوات مشرفى المواقع (https://www.helpernt.com/vb/showthread.php?t=10816)

هيلبرنت 07-11-2020 03:05 PM

اصلاح خطأ author الموجودة فى أدوات مشرفى المواقع
 
اصلاح خطأ مفقود author الموجودة في ادوات مشرفي المواقع Webmaster من بيانات المنظمة Structured Data لبلوجر تعد آداة مشرفي المواقع Webmaster من ادوات المميزة التي تقدمها لك جوجل فهي تعمل على ارشفة موقعك بصفة مباشرة وكذلك تقدم لك انواع المشاكل التي يوجها موقعك لتحسينه، وفي حال دخلت لهذا الموقع و اختر موقعك ثم اتجهت الى مظهر البحث ثم بيانات المنظمة سيظهر لك اخطاء هذا الموقع من بينها مفقود author ولحله تابع معنا.


حل مشكلة مفقود author في بينات المنظمة:
- من مظهر مدونتك قم بالبحث عن الكود التالي.

كود PHP:

    <span class='post-author vcard' >
    <
b:if cond='data:top.showAuthor'>
    <
b:if cond='data:post.authorProfileUrl'>
    <
span class='fn'>
    <
a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
    <
data:post.author/>
    </
a></span>
    <
b:else/>
    <
span class='fn'><data:post.author/></span>
    </
b:if></b:if></span

طبعا لا يمكنك البحث عنه مرة واحد فقط ابحث عن سطر الاول منه، عند عثورك عليه تأكد من انه نفس الكود بعدها استبداله بالكامل بالكود الموالي.

كود PHP:

    <span class='post-author vcard' itemscope='itemscope'  itemtype='http://schema.org/Person'>
    <
b:if cond='data:top.showAuthor'>
    <
b:if cond='data:post.authorProfileUrl'>
    <
span class='fn author'>
    <
a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
    <
span itemprop='name'><data:post.author/></span>
    </
a></span><b:else/>
    <
span class='fn author'><span itemprop='name'><data:post.author/></span></span>
    </
b:if></b:if></span

اذا وجدته مكرر أستبدالهم جميعا، ثم احفظ المظهر.


الساعة الآن 09:11 AM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. TranZ By Almuhajir