2Wordpress लोगोRich snippets code for Mystique 3.x

I’ve pre­vi­ously writ­ten about rich snip­pets code forMys-tique 2There are alsogen­er­ic instruc­tions and code for the themes twenty elev­enme gusta तथा thes­isBelow is updated code for Mys­tique 3

1. The first prob­lem was with the author inform­a­tion / hrecipe sec­tion

The solu­tion:

You need a google pro­file. Your google pro­file must be linked from some­where on the page, with rel=“me”, AND the main domain of your web­site must be lis­ted on your google pro­file links.

I achieved this with the Mys­tique theme with a series of modi­fic­a­tions.

सबसे पहले, I added the code from yoast (जैसा की नीचे दिखाया गया) to functions.php

Second, I went to my word­press pro­file page and filled in the google pro­file field with a link to my google pro­file

Third, I edited a line to author.php, फिर, based on inform­a­tion from yoast, but changed for the Mys­tique theme

And add the fol­low­ing

Then I edited AtomObjectAuthor.php and changed line 213 by adding rel=“author” so it reads as fol­lows

When this is cor­rectly imple­men­ted you should get a suc­cess mes­sage in the snip­pets test­ing tool which reads Veri­fied: Author­ship markup is cor­rect for this page

2. The second problem(एस) were with the hfeed / hentry sec­tion and included the fol­low­ing:

मिस आईएनजी आवश्यक hCard "लेखक".
चेतावनी दें आईएनजी: कम से कम एक क्षेत्र Hcard के लिए सेट किया जाना चाहिए.
चेतावनी दें आईएनजी: कम से कम एक क्षेत्र हट-O-mEntry के लिए सेट किया जाना चाहिए.
चेतावनी दें आईएनजी: मिस आईएनजी आवश्यक फ़ील्ड "प्रविष्टि शीर्षक".
चेतावनी दें आईएनजी: मिस आईएनजी आवश्यक क्षेत्र "अपडेट".
चेतावनी दें आईएनजी: मिस आईएनजी आवश्यक hCard "लेखक".

The solution(एस):

Use the word­press edit­or to edit single.php

Find the code

replace this with…

A final note — Don’t just copy and paste the code from this page, as for some reas­on (I’m guess­ing char­ac­ter encod­ing) it wont work. Copy it from here and paste into win­dows note­pad. Then re-copy it from win­dows note­pad (or any oth­er basic plain-text-only edit­or) and paste into the word­press edit­or. Going via note­pad loses any hid­den encod­ing or oth­er data which causes a prob­lem so the code is treated as the plain-text it is sup­posed to be!

लगता है कि हम कुछ नहीं छूटा है? हमें नीचे टिप्पणी से पता करते हैं. आप सदस्यता के लिए चाहते हैं, तो ऊपर दाईं ओर मेनू पर लिंक का उपयोग करें सदस्यता लें. आप नीचे दिए गए सामाजिक लिंक का उपयोग करके अपने दोस्तों के साथ इस साझा कर सकते हैं. चियर्स.

उत्तर छोड़ दें

2 टिप्पणियाँ

Gravatarलूटना

Is there an update for this since the code is so much dif­fer­ent now using the atom engine?
I have tried to pos­sibly add the code with the atom calls but I am just a little unsure of how to get this to work prop­erly.

जवाब दें