Site logo

[Support request] How to fix issues in creative work (google structure data testing tool)

Home Forums Support [Support request] How to fix issues in creative work (google structure data testing tool)

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

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #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

    #1012790
    Tom
    Lead Developer
    Lead Developer

    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
        );
    } );
    #1013266
    Soumyadip

    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?

    #1013838
    Tom
    Lead Developer
    Lead Developer

    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).

    #1013911
    Soumyadip

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

    #1014080
    Tom
    Lead Developer
    Lead Developer

    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.

    #1014164
    Soumyadip

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

    #1014666
    Tom
    Lead Developer
    Lead Developer

    Try this code instead:

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

    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!

    #1015336
    Tom
    Lead Developer
    Lead Developer

    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.

    #1015787
    Soumyadip

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

    #1016014
    Tom
    Lead Developer
    Lead Developer

    Thanks! 🙂

Viewing 12 posts - 31 through 42 (of 42 total)
  • You must be logged in to reply to this topic.