Hello,
Thank you so much for getting in touch.
Please refer to this code to remove that tag from your website:
add_filter( "rank_math/opengraph/twitter/twitter_creator", '__return_false');
If you wish to remove that tag for a specific post or page, you may refer to this code instead:
add_filter( "rank_math/opengraph/twitter/twitter_creator", function($name){ global $post; if($post->ID == 2547) { /* INSERT YOUR POST ID HERE */ return false; } return $name; });
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Thanks, it worked. Can you make a fix in the new version of the plugin so that the line ”twitter:creator” is removed by itself? Because it’s not normal, is it a bug?
-
This reply was modified 2 years, 7 months ago by
Shmanich.
Hello @shmanich
Glad that worked and helped.
It is not a bug. In twitter:creator, we use the value from settings (as a fallback) when the Twitter username is not added in the Profile settings:
https://rankmath.com/kb/open-graph-meta-tags/#twitter-creator
Hope that clears the confusion and helps. Thank you.
Now I understand where it can be found and removed. Thank you.
To avoid confusion, add “twitter:creator” to the DESCRIPTION of the “twitter:creator” field as well as “twitter:site”, because in this case both tags are added.
Screenshot: https://disk.yandex.ru/i/QfZC0_lKaN9CFQ
Hello @shmanich,
We are glad that we could address your concern and thank you for your feedback. We are doing our best to improve all the descriptions we add to the plugin settings and your input is very much valued.
Don’t hesitate to get in touch with us if you have any other questions.