- This topic has 41 replies, 2 voices, and was last updated 6 years, 6 months ago by
Tom.
-
AuthorPosts
-
September 18, 2019 at 1:46 am #1012289
Soumyadip
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
September 18, 2019 at 9:36 am #1012790Tom
Lead DeveloperLead DeveloperI 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 ); } );September 19, 2019 at 12:53 am #1013266Soumyadip
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?
September 19, 2019 at 10:37 am #1013838Tom
Lead DeveloperLead DeveloperThe above function should remove the
rel="category"code from the categories, which should remove the hatom stuff from the page (if categories are active).September 19, 2019 at 11:59 am #1013911Soumyadip
ok so please provide that code because your above code is not working!
September 19, 2019 at 6:40 pm #1014080Tom
Lead DeveloperLead DeveloperI’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.
September 19, 2019 at 11:38 pm #1014164Soumyadip
Now you can check i have added the code and categories are active now
September 20, 2019 at 9:49 am #1014666Tom
Lead DeveloperLead DeveloperTry this code instead:
add_filter( 'the_category', function( $list ) { return str_replace( array ( 'rel="category tag"', '' ), '', $list ); } );September 21, 2019 at 1:16 am #1015011Soumyadip
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%2FNow check this one too (my competitor website has comments but not showing hcard in testing tool)
Now let me know how to remove this hcard as well..( i know this is a piece of cake for you tom!)
Thanks!
September 21, 2019 at 9:14 am #1015336Tom
Lead DeveloperLead DeveloperThere’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.
September 22, 2019 at 5:12 am #1015787Soumyadip
Ok thanks Tom, will wait for your next update!
GP rocks!September 22, 2019 at 10:20 am #1016014Tom
Lead DeveloperLead DeveloperThanks! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.