DIY وسائل الإعلام الرئيسية الشعار

الموقع النهائي لتصميم وإنشاء مسرح منزلي الخاص ومرحبا فاي الإعداد الخاصة.

22شعار ووردالقصاصات الغنية رمز لموضوع الأطروحة

وردا على الاستعلام عن طريق داركو Kovancives على مقالتي السابقة حول[int­link id=“1520” type=“post”]fixing Rich Snip­pets code for the Mys­tique theme[/intlink] we have resolved the same issues with the Thes­is theme. Details of the changes required are below.

Before the file edits you need to carry out vari­ous oth­er changes and tasks

  1. الحصول على الملف الشخصي في Google (بمعنى آخر. لحساب Google )
  2. إضافة عنوان موقعك (e.g. https://diymediahome.org) إلى ملف التعريف الخاص بك جوجل , كحلقة وصل العام
  3. Get your google plus ID and use it in place of mine in file edit num­ber 5 below
  4. Change a Thes­is set­ting for show­ing author on teas­ers in the options — Thes­is: خيارات التصميم: المضايقون: Teas­er Dis­play Options: علامة "اسم الكاتب"
  5. Change a Thes­is set­ting for link­ing author in options — Thes­is: خيارات التصميم: خيارات العرض: الخطوط الثانوية: "أسماء المؤلف ارتباط المحفوظات"

الآن تفعل التعديلات الملف كما يلي

1. تحرير الخط 151 في content.php إلى عش فترة FN داخل فترة بصيغة بطاقة

من

[php htmlscript=“1”]echo __(‘by’, ‘thes­is’) . " <span class=\“author vcard$fn\”>$الكاتب</شبر>";[/فب]

إلى

[php htmlscript=“1”]echo __(‘by’, ‘thes­is’) . " <span class=\“vcard\”><span class=\“author $fn\”>$الكاتب</شبر></شبر>";[/فب]

2. تحرير الخط 114 في content.php لتوفير التحديث بتاريخ وكذلك تاريخ نشره

من

[php htmlscript=“1”]إذا ($تاريخ)
echo ‘<abbr class=“published” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </ابر>;[/فب]

إلى

[php htmlscript=“1”]إذا ($تاريخ){
إذا(get_the_date()!=get_the_modified_date()){
echo ‘<abbr class=“published” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </ابر>. تحديث <abbr class=“updated” title=“ ‘ . get_the_modified_time(‘Y‑m-d’) . ’ ”> . get_the_modified_time(get_option(‘date_format’)) . </ابر>;
}
آخر{
echo ‘<abbr class=“published updated” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time(get_option(‘date_format’)) . </ابر>;
}
}[/فب]

3. تحرير الخط 81 في teasers.php لتشمل تاريخ تحديث

من

[php htmlscript=“1”]echo ‘<abbr class=“teaser_date pub­lished” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . "</ابر>\n”;[/فب]

إلى

[php htmlscript=“1”]إذا(get_the_date()!=get_the_modified_date()) echo ‘<abbr class=“teaser_date pub­lished” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . </ابر><abbr class=“teaser_date updated” title=“ ‘ . get_the_modified_time(‘Y‑m-d’) . ’ ”><span class=“value-title” title=“ ‘.get_the_modified_time($use_format).’ ”></شبر></ابر>’.”\n”;
else echo ‘<abbr class=“teaser_date pub­lished updated” title=“ ‘ . get_the_time(‘Y‑m-d’) . ’ ”> . get_the_time($use_format) . "</ابر>\n”;[/فب]

4. تحرير التعليمات البرمجية مؤلف أ href على الخط 144 من content.php لإضافة يختلط = "لي"

من

[php htmlscript=“1”]$author = ‘<a href=“ ‘ . get_author_posts_url(get_the_author_ID()) . ’ ” class=“url fn“ ‘ . $nofol­low .’> . get_the_author() . </ا>;[/فب]

إلى

[php htmlscript=“1”]$author = ‘<a rel=“me” href=“ ‘ . get_author_posts_url(get_the_author_ID()) . ’ ” class=“url fn“ ‘ . $nofol­low .’> . get_the_author() . </ا>;[/فب]

5. تحرير الخط 308 في content.php لإدراج ارتباط حساب Google

من

[php htmlscript=“1”]$output .= “$tab\t<h1>" . apply_filters(‘thesis_archive_intro_headline’, get_author_name($wp_query->query_vars[‘author’])) . "</h1>\n”; #wp[/فب]

إلى

[php htmlscript=“1”]$output .= “$tab\t<h1><a rel=\“me\” href=\“https://plus.google.com/104657888470728381512/\”>" . apply_filters(‘thesis_archive_intro_headline’, get_author_name($wp_query->query_vars[‘author’])) . "</ا></h1>\n”; #wp[/فب]

اترك رد

22 تعليقات

JSجون سكيف

Yes — I’ve had some syn­tax cor­rup­ted by the word­press code edit­or and by a plu­gin. لقد حل نأمل أن هذا الآن، وسوف يكون فحص رمز في كل المشاركات خلال عطلة نهاية الاسبوع مزدوج. آسف على ذلك!

الرد
Tتود

بفضل جون. الإصلاح الرائعة. The Thes­is’ hcard errors cleaned up nicely.
نحن على وجود قضية ذات الصلة والتي ربما عليك أن تعرف الجواب ل. لدينا بعض الترميز توليد تنسيق hrecipe ويمكن أن نرى هوامش الربح عند التفتيش العناصر آخر, ولكن أداة قصاصة الغنية لا قبض عليه على الإطلاق. المطور لا يوجد لديه مشاكل في الحصول على التقطت على موقع لها وغيرها كانت قد بنيت خارج, but for some reas­on it isn’t get­ting picked up on a Thes­is theme.

لا أعرف إذا كان هذا هو في القاطرات الخاصة بك, but if you could take a look that would be awesome.

هنا هو آخر لنا مع العلامات: تفحم الفراولة الكعك
هنا هو واحد من راتبها مع العلامات: فطائر التفاح

شكرا مرة أخرى للإصلاح السابق وعلى اي مساعدة يمكن أن تقدم.

الرد
Tتود

فكنت أحسب الجواب. كانت ملفوفة وصفة في علامة اقتباس فقرة. I changed that to a div tag and everything ran through perfect.

Thanks again on the pre­vi­ous hcard coding.

T

الرد
JSجون سكيف

أعتقد أنك قد اختلطت يختلط بك = "لي" ويختلط = "الكاتب" الكلمات قليلا

يجب أن يكون لديك فقط واحد يختلط = "لي" وصلة - من صفحة المؤلف لجوجل ملفك الشخصي. في كل مكان آخر يجب أن يكون لديك يختلط = العلامات "الكاتب". على صفحتك الرئيسية كل مشاركة وصلة "من قبل فوتر دي يونج" الذي يشير (بشكل صحيح) إلى الصفحة المؤلف بك ), ولكن لديك REL = "لي" على هذه الروابط. وينبغي أن يكون REL = "الكاتب"

بمجرد تغيير هذه يختلط = "لي" وصلات إلى يختلط = "الكاتب" وأعتقد أنه سوف نعمل جميعا - كما هو عليه كنت قد حصلت على يختلط متعددة = "لي" الروابط على الصفحة الخاصة بك مؤلف, معظمهم مرة أخرى إلى نفسه وفقط 1 (بشكل صحيح) مشيرا إلى Google ملفك الشخصي. وأعتقد أن هذا هو الخلط بين أداة قصاصة

الرد
Sالصحة

مرحبًا جون, it worked per­fectly — I did­n’t include items 4 و 5 from your list as they are not essen­tial to val­id­ate the rich snip­pet and I’m not bet­ting on Google+ just yet so I don’t want to “lit­ter” my themes 🙂

Thanks for the tip 🙂

الرد
اarafinshaon

تواجه مشكلة @ جون سكيف أنا لا تحصل بالضبط نفس الرمز في ملف content.php. I’m using thes­is 1.8.2. انتظار 4 ردكم ...

الرد
اarafinshaon

فعلت هذا بالضبط. after doing this my Author­ship markup got veri­fied but unfor­tu­nately I’m get­ting below errors .

جي تحذير: ملكة جمال جي حقل مطلوب "تحديث".
جي تحذير: يجب تعيين حقل واحد على الأقل لHcard.
جي تحذير: في عداد المفقودين حقل مطلوب "اسم (FN)".

هل يجب علي الانتظار لبضعة أيام لالزحف?

الرد
JSجون سكيف

ما هو عنوان موقع الويب الخاص بك? الصفحة التي أنت تحصل على الأخطاء على? الصفحة الرئيسية, وظيفة أو كليهما? Have you made any oth­er modi­fic­a­tions to the theme — like adding extra files or using a child theme?

الرد
JSجون سكيف

عذرا - خطأي. لقد حظيت بها. قد حصلت على رمز المهترئ التي كتبها ورد. I think when I update the post word­press pro­cesses some of the code and takes some of the classes out which makes it dis­func­tion­al. لقد تصحيحه. يرجى محاولة إعطائها الآن.

الرد
EYإيكو Y

شكرا, معلومات مفيدة جدا. لكن, كيفية إضافة معلومات العلامات الفوقية مثل هذا بلوق? يبدو إذا أن أفعل فوق الحق في المتصفح »معلومات الصفحة مشاهدة. There are many inform­a­tion on gen­er­al tab. مثل الكاتب, منفذ العرض الخ. بلدي بلوق هو احتواء فقط : مضمون, الروبوتات, الوصف, keywords in page info..How to get this snippet?
شكرا..

الرد
JSجون سكيف

Most of that comes from using a semant­ic HTML5 theme for word­press com­bined with the Yoast هذا PLU-الجن. ولدي أيضا مختلف الملفات الوصفية مثل humans.txt وملف robots.txt. إلقاء نظرة على دليل وورد عن الكثير من المعلومات حول تحسين الإعداد وورد الخاص بك.

الرد