Hello,
I’m sorry to hear that you are facing an issue with the "View Article" text being automatically added by Rank Math. To remove this text, you can follow these steps:
-
Install and activate the Code Snippets plugin from the Plugins → Add New section of your WordPress dashboard.
-
Once the plugin is activated, navigate to Snippets → Add New in your WordPress dashboard.
-
Add the following filter code snippet:
add_filter('rank_math/opengraph/facebook/og_title', function ($content) {
if (is_singular('post')) {
$content = '';
}
return $content;
});
-
Save the snippet.
By adding this code snippet using the Code Snippets plugin, the "View Article" text should be removed from the specified locations in your website.
If you encounter any further issues or need additional assistance, feel free to reach out to our dedicated support team here.
Thank you for reaching out with your concern. Let me know if there is anything else I can assist you with.
Sources:
How to Remove Keywords Data from Article Schema » Rank Math
Rank Math SEO Filters and Hooks for Developers – Rank Math
How to Remove Date Snippets from Search Results » Rank Math
How to Make Your Theme Rank Math Compatible » Rank Math
thank you for your reply.
I have already tried that but it didn’t solve the problem so I contacted you. Please let me know how to solve it.
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Your website seems to be affected by a hack, this is a pretty common malware attack that infects websites all across the globe and it happens when someone gains access to the website and injects some malware into it.
To overcome this issue we would recommend following the steps here to make sure that you have completely removed the hack from the website: https://web.dev/fixing-the-japanese-keyword-hack/
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thanks.
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.