Missing "image" in Schema

#9638
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

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

    You can fix this by adding the following code to your theme’s functions.php file:

    add_action('rank_math/json_ld',function($data, $jsonld){
    	$data['Organization']['Image'] = $data['Organization']['logo'];
    	unset($data['Organization']['logo']);
    	return $data;
    },99,2);

    Let us know how this goes. Thank you.

    ​​​​​​​

    I added the code to the bottom of the functions.php however it didn’t seem to work. Any suggestions?

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Thanks for your assistance the login details has been added to the sensitve data section

    Hi Joel,

    Thanks for the access.

    The code works but you needed to purge your site cache for the changes to take effect.
    I have gone ahead and modified the code to the following to fix additional warnings on the schema:

    add_action('rank_math/json_ld',function($data, $jsonld){
    	$data['Organization']['Image'] = $data['Organization']['logo'];
    	$data['Organization']['telephone'] = $data['Organization']['contactPoint'][0]['telephone'];
    	$data['Organization']['priceRange'] = "$$";
    	unset($data['Organization']['logo']);
    	return $data;
    },99,2);

    I hope this info helps. Thank you.

    Fantastic! Thanks for all the help Michael

    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/?rate=5#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.

Viewing 8 replies - 1 through 8 (of 8 total)

The ticket ‘Missing "image" in Schema’ is closed to new replies.