Site logo

Archived topic

How to fix issues in creative work (google structure data testing tool)

41 replies · Started by Soumyadip on October 26, 2018

Viewing posts 31–42 of 42

yes you are right tom... when i am disabling the tags, htom is still there because it is still catching up the categories url.. but when I am disabling both categories and tags, htom is gone..

So my question is if I disable both categories and tags will that negatively affect seo.. because my categories are enabled for search engines and i have disabled the tags indexing.

Let me know

I guess the question is whether the hatom tags are going to negatively affect SEO. I would say no - it's likely better to have them (with hatom) than not have them.

WordPress adds those hatom tags to the category/tag links by default.

Not sure if it will work, but you could try using a function like this:

add_filter( 'the_category', function( $list ) {
    return str_replace(
        array ( 'rel="category"', '' ), '', $list
    );
} );

No changes!

I am little confused here.. what will this function actually do?

Look here's what I did:
The first function you provided with hentry (i applied it and hentry elements are gone)
then i disabled the tags and categories on the blog settings (then the entire htom is gone)..

Now what will this above function do?

The above function should remove the rel="category" code from the categories, which should remove the hatom stuff from the page (if categories are active).

ok so please provide that code because your above code is not working!

I'm not seeing any lists of categories right now, so that code wouldn't do anything.

As of right now, your site doesn't have any hatom stuff in the testing tool. If you want me to check it out, make sure the category list is active, and the code I provided above is added to your site.

Now you can check i have added the code and categories are active now

Try this code instead:

add_filter( 'the_category', function( $list ) {
    return str_replace(
        array ( 'rel="category tag"', '' ), '', $list
    );
} );

Thanks, Tom it is now working....
One last thing when I am checking the posts which got comments it's showing hcard in testing tool
check this - https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.allchickenrecipes.com%2Forange-chicken%2F

Now check this one too (my competitor website has comments but not showing hcard in testing tool)

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fwww.recipetineats.com%2Fbeef-stroganoff%2F

Now let me know how to remove this hcard as well..( i know this is a piece of cake for you tom!)

Thanks!

There's no way to change that one right now, unfortunately.

I'll try to add a filter to GP 2.4 that removes all theme-related hatom stuff.

Ok thanks Tom, will wait for your next update!
GP rocks!

Thanks! :)

This archived topic is closed to new replies.