Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Could you also include the affected URLs for us to check further? You can provide them in the designated Sensitive Data section.
It is completely secure, and only our support staff has access to that section.
Thank you, and looking forward to your update.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The issue is happening because translating your page also encodes the curly brackets, which are usually added to your Sitelink Search box markup, from s={search_term_string}
to s=%7Bsearch_term_string%7D
. This is what is causing the issue. You can try customizing and adding the following filter to your theme functions.php to defined the sitelinks URL and keep it from being modified in translation:
add_filter( 'rank_math/json_ld/search_url', function( $url ) {
if ( 'es' === ICL_LANGUAGE_CODE ) {
return 'https://your_site_url.com/?s={search_term_string}';
}
return $url;
} );
Looking forward to helping you. Thank you.
Thank you so much for your quick response!!
I just added the code.
Do you know how long it would take for Google to validate the errors? Should I do it manually?
Thx again
Hi,
Thank you for the follow up.
I checked your URLs and it seems you added the code directly as it is.
You will need to customize add a check for each of your languages to make this take effect on each of the language. You should also change your_domain
to your actual domain. The final code that you add to your site should be something like the following:
add_filter( 'rank_math/json_ld/search_url', function( $url ) {
if ( 'es' === ICL_LANGUAGE_CODE ) {
return 'https://www.7continents1passport.com/?s={search_term_string}';
}
if ( 'pt-br' === ICL_LANGUAGE_CODE ) {
return 'https://www.7continents1passport.com/?s={search_term_string}';
}
return $url;
} );
Once done, you can test your URLs using the Rich Results test tool: https://search.google.com/test/rich-results and if there are no errors then it is just a matter of waiting on Google to crawl and update your page data.
Hope this helps. Thank you
Thank you!!
I feel so stupid… haha
Can you check if it’s right now please?
Hello,
I checked your URLs and the seem to be fine now, you can try validating them on GSC or wait for Google to update this once they have crawled your pages again.
You can confirm they are okay here: https://search.google.com/test/rich-results
Hope this helps, thank you.
Thank you so much Michael!!
I’m getting an error that I was not getting before :-/
“Page partially loaded
Not all page resources could be loaded. This can affect how Google sees and understands your page. Fix availability problems for any resources that can affect how Google understands your page.”
Do you know how can we fix that please?
Hello,
What URL are you getting that on? Are you seeing that in the GSC?
In the Rich Results tests, everything is working fine:
A screenshot of the error would help us determine what might be causing it.
Yes, I’m.
Many pages are like that…
You can see it on the top left of the Rich Results page.
I’m trying to send the screenshots for you, but I believe you’ll be able to see it.
Thx
Hello,
Those are not related to Rank Math.
The first one is coming from an external getyourguide widget.
The next 3 are coming from adorate plugin and easy table of contents.
None of these issues are coming from Rank Math.
Hello,
Glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.