Schema Issue

#465551
  • Resolved Antonio Malvone
    Rank Math free

    Hello,

    I am evaluating to use RankMAth instead of Yoast but currently I’m experimienting two key issues

    1) Accents and special caracters are not displayed correctely in schema

    Example:
    – Nutrición -> Nutrici\u00f3n
    – alimentación -> alimentaci\u00f3n

    You can check it out on this page https://almunutri.com/alimentacion-en-el-embarazo/

    2) Google Rich Results Test doesn’t recognize any schema on my page.

    I’ve tested bot the URL and the code string.

    The page to test if the same as before.

    Hope you can help, becouse the plugin looks quite interesting.

    Kind regards,

    Antonio

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hello,

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

    1) This is completely normal as these accent characters need to be written in HTML entities so the browser can read them. Google should still be able to read the correct character.

    2) The reason you are not seeing the Service schema is that the Rich Results Test doesn’t support it yet. Here is the list of schema which Rich Results Test does currently support:
    schema list
    You may check this link for your reference: https://support.google.com/webmasters/answer/7445569?hl=en#zippy=%2Csupported-types

    You can confirm that your Service schema is working by checking your page to Schema Markup Validator instead.

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

    Thank you Jeremy,

    Perfecly clear.

    I have another 2 related questions:

    1) Performance

    I’m using WP-Rocket to speed up te site, previous to the installation of Rank Math the site http://www.almunutri.com was performing at more than 90 in mobile with the use of WP-Rocket.

    After the istalling it is now lower to 70. Do you have any idea of why I got this decrease in performance with your plugin?

    2) Indexing

    I’ve read that google only accept the API indexing for Job Posting and Broadcasting Event.

    But my SEO manager says that if would help me to get my page indexed instatly, please can you explain me how your instant idexing works?

    Thanks!

    Antonio

    Nigel
    Rank Math business

    Hello,

    It is difficult to assess what caused the drop in WP Rocket score. If a detailed breakdown of the WP rocket score is available, please check there as that will provide the details to assess what caused the drop in WP Rocket score.

    Google instant indexing is mainly meant for JobPosting schema and live broadcasting events, but Google will not penalize for using instant indexing on other content types.

    Hope that helps. Please let us know if you have questions.

    Thank you. Ok I do understand.ç

    I do have another question related to local business schema. I just activated it and it look like I haven’t got the option to choose a schema image. It’s like RM only read the logo as both logo and image.

    I looked at both Schema and Google validators and in both case my home page has the same URL as logo and image. How can I change the url of the image schema in my local business shema?

    Tx

    Hello,

    You can change the image URL in Rank Math > Titles & Meta > Local SEO > URL.

    Here’s a link for more information:
    https://rankmath.com/kb/local-seo/#url

    Hope that helps.

    Thank you.

    Hello Reinell, I don’t understand well.

    It looks like URL field is for the URL of the website (point 4 of the guide) not for the Schema image.

    Can you clarify it please?

    Hello,

    Please refer to point #3 instead or visit this URL: https://rankmath.com/kb/local-seo/#logo

    This should allow you to change the Logo image path in the schema structure for your Local settings.

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

    Jeremy I m not referring to the logo but to the featured image (the photo of Almudena).

    If you see the schema in a schema validator you can find two different schema tags, one of the logo and another to the image.

    Using your plugin I can only set the logo and the image tag take the same url when in reality it should have a different URL, one that is pointing to the photo image.

    Is that possible?

    Hello,

    In this case, you can manually change the featured image or modify the ld+json by following this filter code: https://rankmath.com/kb/filters-hooks-api-developer/#extend-json-ld-data

    Hope that helps.

    Looking forward to helping you.

    Thank you Jeremy, I have to say that I really got no idea how to modify the snippet

    Say that I wand to substitute the url of the logo with the url of the image http://www.myimage.com for my image schema. Should i do the following?

    1) create the RankMath php file

    2) add the filter – I’ve created the following based on this post https://support.rankmath.com/ticket/edit-image-value-in-schema/

    add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) {
    return $data;
    }

    $data [‘image’] = [

    ‘@type’ => ‘ImageObject’
    ‘@id’ => ‘https://mysite.com/#image’
    ‘url’ => ‘https://mysite.com/myimage.com’
    ‘contentUrl’ => ‘https://mysite.com/myimage.com’
    ‘caption’ = My image name
    ‘inLanguage’ es
    ‘width’ 600
    ‘heght’ 500
    ];
    return $data

    }, 99, 2);

    Is this right?

    Hello,

    Yes, you can create a separate rank math PHP file. Please refer to this filter code instead:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	if(isset($data['publisher'])){
    		$data['publisher']['image'] = [
    			'@type' => 'ImageObject',
    			'@id' => 'https://mysite.com/#image',
    			'url' => 'https://mysite.com/myimage.com',
    			'contentUrl' => 'https://mysite.com/myimage.com',
    			'caption' => 'My image name',
    			'inLanguage' => 'es',
    			'width' => 600,
    			'heght' => 500
    		];
    	}
    	return $data;
    }, 99, 2);

    Hope that helps. Looking forward to helping you.

    Thank you Jeremy.

    Done and validated in schema.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    Sorry but I have to reopen the issue is this is possible.

    I’ve tried the code above but it seems that is doesn’t solve the task.

    Jeremy’s code actually add a primary image to all the website pages, but what I really need is to substitute the @image tag in the RankMath home page only for the correct image.

    It should point to an image url and not the one chosed for the logo.

    Is this possible?

    Hello,

    The filter code should modify any existing image property in your publisher property or it will add the object if there isn’t any.

    If you wish to apply it only to your homepage, please add this statement to your condition:

    (is_front_page() || is_home())

    However, if it seems I am still missing something, can you please share a screenshot of the property you wish to modify on your homepage? You may access your homepage’s page source and share a screenshot of the schema structure you want to edit.

    Looking forward to helping you with this one.

Viewing 15 replies - 1 through 15 (of 22 total)

You must be logged in to reply to this ticket.