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.
1. In this case, you can use this filter to update the search term URL:
add_filter( 'rank_math/json_ld/search_url', function( $url ) {
return 'https://www.hindifriend.com/search/{search_term_string}';
});
The filter should be added to your active theme’s functions.php file. Here’s another way to apply the filter using the rankmath.php file:
https://rankmath.com/kb/filters-hooks-api-developer/#adding-filters-and-hooks-in-rank-math-php
2. According to Google guidelines, the Sitelinks schema should only be added to the homepage, which Rank Math automatically does by default.
However, if you wish to implement the Sitelinks on all your pages, you can follow the steps in this link:
https://rankmath.com/kb/sitelinks-searchbox-schema/
Hope that helps.
Thank you.
Thank you for help!
And I want to remove Auto generated @type WebPage and Organisational Schema, because I want to add my own created Schema.
Thanks in advance
Hello,
To remove @type WebPage from homepage, you may try adding the following filter:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
if(is_front_page()) {
unset($data['WebPage']);
}
return $data;
}, 99, 2);
To remove Organization Schema, please follow the KB below:
https://rankmath.com/kb/remove-organization-schema/
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Is there any way to add custom field in Title or Description like this in Rank Math – https://www.youtube.com/watch?v=Jwp2yHBdrVw
Hello,
Thank you for providing additional information.
Yes, you can add custom fields title and description. You can add it globally by navigating to Rank Maths > Titles & Meta or individually within the posts / page. The code that needs to be amended is %customfield(field-name)%, change “field-name” with the actual field name created in Custom Fields plugin.
If you need further assistance, please don’t hesitate to contact us.
Thank you
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.