-
I use the following tags:
Homepage-Titel
%page% %sep% %sitename%Result:
http://www.domain.com/
<!– Suchmaschinen-Optimierung durch Rank Math PRO – https://rankmath.com/ –>
<title>| Sitename</title>
Expected behavior: <title>Sitename</title>http://www.domain.com/page/2
<!– Suchmaschinen-Optimierung durch Rank Math PRO – https://rankmath.com/ –>
<title>| Seite 2 von 170 | Sitename</title>Expected behavior: <title>Seite 2 von 170 | Sitename</title>
Why are the separator and the space not deleted? Have I set something wrong?
The separator (with any empty spaces) must be removed if there are no contents.
-
Hello, we apologize for the inconvenience you’re experiencing with the separator and space not being removed as expected. It seems like there might be an issue with the way the variables are being used in the SEO title and description.
Based on the information you’ve provided, it looks like you’re using the
%page%
and%sitename%
variables in your SEO title. The behavior you’re experiencing is not the expected one, and it seems like the separator and space are not being removed when there are no contents.To resolve this issue, you may need to review the way the variables are being used and ensure that they are correctly configured to display the desired output. It’s possible that there might be an error in the way the variables are set up, leading to the unexpected behavior.
If you’re unsure about how to configure the variables correctly, please feel free to provide more details about how you’ve set them up, and we’ll be happy to assist you further.
Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue for you.
Sources:
Using Variables in the SEO Title and Description » Rank Math
Multilingual SEO with Rank Math SEO & WPML » Rank Math
How to Make Your Theme Rank Math Compatible » Rank Math
Rank Math General SettingsHello,
Let us know if you have already managed to fix the title issue.
Meanwhile, you may share the affected URL so we can check the title tag.
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Is there any news on my topic yet?
Hello,
Apologies for the delay as this ticket seems to have been stuck in our drafts section for some reason.
In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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.
I mentioned in the ticket that the following days are saved.
I use the following tags:
Homepage-Titel
%page% %sep% %sitename%I have three different blogs with different plugins and themes. I have the same error with all of them.
Why don’t you try this in your test blog? You will certainly find the same error.
Hello,
We added the same setting to the Homepage Title on our local setup :
Upon checking the source code of the homepage we could witness the following :
You are correct on the fat that we also witness the same as you do.
However this is the expected behaviour of this setup and it’s neither a bug on the plugin nor an issue with your sites.
This is because the variable
%page%
is used for a page number with context that is likepage 2 of 4
orpage 3 of 8
and so on.It is worth noting that is displayed only on page 2 and above.
Ideally the variable
%page%
is meant to be used at the end of the Meta Title without the use of the%sep%
before it, as it adds a seperator automatically before it.One example for it is as below :
This will allow you to display the page title as below for page 1 :
And for page 2 and above it will display page title as below :
The benefit of this feature is that if the page number 1 is being viewed then the separator is not shown at all along with the page number being absent, but when pages 2 and 3 are viewd the page number with context comes up along with the separator to it.
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.
Unfortunately, the behavior is not optimal. I have too many characters either way.
Home
<title>| Sitename</title>
On the start page there is | and one space too many.Page2
<title>| Seite 2 von 170 | Sitename</title>
On page 2 there is | and one space too many.Surely this behavior can’t be normal?
Hello,
Could you please read my previous reply again as I have given you a real life example of how this is beneficial this way.
However we can provide custom hook/filter for you to make it work differently on our site if you request for it.
Let us know.
Hello,
Additionally Could you please set the Homepage Title value as below to see if that works for you :
%sitename% %page%
However if you still want to use your setup of
%page% %sep% %sitename%
, then please add the below hook/filter code that I wrote for you to resolve this issue:Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.
Thank you, I have seen your tip and it works.
Only if you can insert a separator, this should be consistent.I always have the title at the end as an example.
On the start page and on the pages it is now at the beginning.In my view, this should be solved uniformly.
Hello,
I have checked the pages and I can see that you have applied the idea to implement the
%page%
at the end and it works as expected.We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.
Thank you very much, works perfectly 🙂
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/#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.
You must be logged in to reply to this ticket.