404 Page not Found TITLE translation

#199157
  • Hi,

    Rank Math translates the header of 404 page to “Page not found – %sitename%”.
    If i translate the string “page not found” via Loco translate (for Rank Math plugin), it does not change it.

    I have this string / name for “page not found” translated in my page builder and when Rank Math is deactivated the page displays correct translation for any 404 page. But with Rank Math active it gets over-writen to English with no way of manually translating the string. I searched a lot. Found only one topic on this matter at your support page, but it was solved in private and solution never reveald to public.

    Kind regards,
    Kristof

Viewing 9 replies - 1 through 9 (of 9 total)
  • Brian
    Rank Math free

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Am assuming you are referencing to this support ticket. The translation here is done with WPML which is why they referenced it to be done in the settings fields. Am sure this is quite different with Loco.

    Rank Math does not have control over the strings translations of your 404 page. This is done by your theme.
    If you are using the latest version of the plugin, then, it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please record a video screencast using a tool like Loom showing the troubleshooting and edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    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/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping you.

    Hi,

    See attached loom

    You can see Without any plugins active, the WordPress original theme active, the 404 page name is transleted correctly. Immedietely after activating Rank Math, the 404 page name gets reverted to English.

    Even though the String for “page not found” is translated in Rank Math via loco translate.

    I couldn’t be the first one to point this out, isn’t there an easy fix ? 🙂

    Kind regards,
    Kristof

    Hello,

    Thank you for the update.

    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.

    Looking forward to helping you.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    Upon checking your page I noticed that rank Math is replacing the Title tag of your header with its default “Page Not Found” tag. This is embedded within the plugin’s code but you can still translate it.

    Within the Loco Translate plugin go to the Rank Math plugin and access all the strings that come with the plugin. On the search input section, you should do a quick search for Page Not Found and then perform the translation.

    If this does not help you may want to try this with another translation plugin like WPML.

    Else please try using this custom filter to change the 404 page not found title to your preferred translation:

    add_filter( 'rank_math/frontend/title', function( $title ) {
    	if(is_404()) {
        global $wp_query;
    		$title = "Some Page Title Status";
    	}
            return $title;
    });

    Make sure you change Some Page Title Status to your preferred translation and it should work fine.

    Hope this is helpful. Please let us know if you have any other questions for us.
    Thank you.

    Hi,

    Thank you for your reply.

    The Loco Translate of the other string has no effect.
    The custom code to functions.php works, but the problem is. I am running a multi site, and the other pages gets translated as well.

    Any better solution to translate this only on my /cs/ site?

    Kind regards,
    Kristof

    Brian
    Rank Math free

    Hello,

    Here is a workaround to which I have gone through. Rather than having this code inserted within the theme’s editor under the funtions.php, you can install the code snippets plugin and activate it on your subsite that is /cs/.

    Once installed add this code within the plugin and activate it. This will only have an effect on your subsite and not the main site.

    Hope this helps. Please let us know if you have any other questions.

    Thank you !

    Hello,

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us 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 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.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘404 Page not Found TITLE translation’ is closed to new replies.