Gravatar being included in structured data?

#51803
  • Resolved Greg
    Rank Math free

    In reviewing the structured data for my site, I noticed in all the blog post author > image > url ‘s there is a link to a gravatar image. I would imagine this is being created by RM as my site has Gravatar’s disabled and i Would think this wordpress setting should be honored?

    If an image is truly necessary for SEO, I would want the icon locally hosted on my site, but I definitely do not want to be linking out to gravatar anywhere on my site.

    Please advise. Thx!

    • This topic was modified 3 years, 11 months ago by Greg.
Viewing 15 replies - 16 through 30 (of 31 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    1. It is quite unexpected for author archives to show when disabled. Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    2. It appears you wish to remove json and ld data. To do so you can use the following filter. Please let us know if resolves your issue.

    /**
     * Code to remove json+ld data
     * 
     */
    add_action( 'rank_math/head', function() {
    	global $wp_filter;
    	if ( isset( $wp_filter["rank_math/json_ld"] ) ) {
    		unset( $wp_filter["rank_math/json_ld"] );
    	}
    });

    Looking forward to helping you. Thank you.

    Greg
    Rank Math free

    I do not want to disable all JSON-LD data… I want to disable specifically the things that I mentioned… the data that does not belong on the page…

    And yes I have disabled all plugins except rankmath and changed themes to ensure it was not a theme specific issue… it was not…

    As previously mentioned, i was able to reproduce this issue on 2 brand new installations and provided access to one of these installations so you could see for yourself… I am yet to hear back about what y’all changed though on that site so I can reproduce it on the production site…

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have forwarded this issue to the dev team for a closer investigation. Please keep the temporary access open for the time being.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Todd
    Rank Math free

    Hi,

    Sorry to disappoint but that feature is unfortunately not available at this time.

    With that being said, there are existing feature requests, so I’ve added your vote to our internal suggestions lists. If your suggestions are something that we’re able to introduce, I’ll be sure to let you know.

    Greg
    Rank Math free

    What feature is not available? This is not a feature, this is a BUG. Gravatars are EXPLICITLY being ADDED by RankMath. This isn’t a question of a feature in which I’m asking for RankMath to FILTER existing metadata, it is the case where RankMath is incorrectly inserting data (as evidenced by the snip of code posted earlier).

    And the second issue is why the filtering out the blog entity section of the json data is not working until y’all can fix the original problem?

    Hello,

    Thank you for the follow up.

    Rank math doesn’t have the feature to disable specific json data/filter meta data on some pages as you want. Your suggestion was added into our pool of feature requests.

    In the issue to do with filtering the blog entity, I have checked your site and it doesn’t seem to appear . Please check it on SDTT and let us know.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Greg
    Rank Math free

    Of course it doesn’t… because someone from RM already logged in and fixed the issue on the test site… but I’m still waiting to hear what y’all did so I can do the same on the production site…

    And again, it’s not the ability to filter it… it’s the plugin literally ADDING the wrong data.

    I really don’t understand… In the years I used your competitor… I never once opened a support ticket. Since installing RM, I’ve had to open about 10.

    And on all 10 of these tickets, I had to figure out my own answer at that. Something REALLY needs to change here…

    Greg
    Rank Math free

    I just want to clarify that your best advice, to fix a glitch caused by your plugin, after going through all the troubleshooting steps, granting access, etc… is that I just disable the JSON data altogether? If I’m going to disable all of RM’s features (being I already have numerous other filters in place to fix the other bugs) why have RankMath installed to begin with?

    That’s like buying a car and telling me it’s awesome as long as I don’t put gas in it, because it may explode.

    Hello,

    Thank you for contacting Rank Math today.

    Here is the filter you can use to remove blog snippet from home page.

    /**
     * Filter: Remove/modify schema data.
     *
     * @param array $return Array of json-ld data.
     */
    add_filter( 'rank_math/json_ld', function( $data, $json ) {
    	if ( is_home() && isset( $data['Blog'] ) ) { // Remove Blog Snippet from homepage.
    		unset( $data['Blog'] );
    	}
    	return $data;
    }

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Greg
    Rank Math free

    I think that’s missing the closing ) at the end? But either way it crashes wordpress…

    Alberto
    Rank Math business

    Hello,

    You are right it was missing a ‘)’ and also a ‘;’ at the end. Could you check this one?

    /**
     * Filter: Remove/modify schema data.
     *
     * @param array $return Array of json-ld data.
     */
    add_filter( 'rank_math/json_ld', function( $data, $json ) {
    	if ( is_home() && isset( $data['Blog'] ) ) { // Remove Blog Snippet from homepage.
    		unset( $data['Blog'] );
    	}
    	return $data;
    });

    Looking forward to help you.

    Greg
    Rank Math free

    Nope still crashing WP… here’s the log…

    [04-Jun-2020 05:05:29 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /public_html/wp-includes/class-wp-hook.php on line 289 and exactly 2 expected in /public_html/wp-content/themes/mytheme/functions.php:363
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(289): {closure}(Array)
    #1 /public_html/wp-includes/plugin.php(249): WP_Hook->apply_filters(Array, Array)
    #2 /public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(103): apply_filters_ref_array(‘rank_math/json_…’, Array)
    #3 /public_html/wp-content/plugins/seo-by-rank-math/includes/modules/rich-snippet/class-jsonld.php(78): RankMath\RichSnippet\JsonLD->do_filter(‘json_ld’, Array, Object(RankMath\RichSnippet\JsonLD))
    #4 /public_html/wp-includes/class-wp-hook.php(287): RankMath\RichSnippet\JsonLD in /public_html/wp-content/themes/mytheme/functions.php on line 363

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Allow me to check with the dev team the probable cause for this error and we will get back to you.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Todd
    Rank Math free

    Hello,

    Sorry for the hassle.

    Please use this code:

    add_filter( 'rank_math/json_ld', function( $data, $json )  {
    	if ( is_home() && isset( $data['Blog'] ) ) { // Remove Blog Snippet from homepage.
    		unset( $data['Blog'] );
    	}
    	return $data; 
    }, 11, 2);

    I just tested it on two separate websites and it works for removing the Blog Schema on the homepage.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Greg
    Rank Math free

    Yup that one seemed to work… Thanks!

Viewing 15 replies - 16 through 30 (of 31 total)

You must be logged in to reply to this ticket.