Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Google webmasters errors (http://forum.bytesforall.com/showthread.php?t=22890)

maralian Oct 23, 2014 11:57 AM

[SOLVED] Google webmasters errors
 
Hello and thanks again for this great theme.

In Google webmaster tools under > search appearance > structured data, I'm getting some errors. I have 15 pages showing this: Missing: author Missing: entry-title Missing: updated.

I googled this problem and all the solutions I found suggested that I should change some code in single.php file or in index.php file...

Nothing worked for me...

Can somone help me solve this problem?

lmilesw Oct 23, 2014 12:43 PM

I don't think this is a big deal but I did find this plugin that is advertised as "fixing the problem" but I HAVE NOT TESTED.

juggledad Oct 23, 2014 01:23 PM

here is a quick fix. Edit Functions and just before the last line -which should be
HTML Code:

?>
add the following
HTML Code:

/**
* Remove hentry from post_class
*/
function isa_remove_hentry_class( $classes ) {
    $classes = array_diff( $classes, array( 'hentry' ) );
    return $classes;
}
add_filter( 'post_class', 'isa_remove_hentry_class' );

this will get rid of the henry class and google shouldn't complain.

lmilesw Oct 25, 2014 07:19 PM

And if you don't want to edit the functions.php file you could use the "Code Snippets" plugin. This will eliminate the need to redo the edit if you update your theme.

maralian Nov 10, 2014 08:37 AM

Sorry for the delayed reply...

juggledad's code gradually fixed the problem. I inserted the code on October 23rd and on November 9th there were no errors... Thanks a lot...!


All times are GMT -6. The time now is 05:01 AM.

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