Random AMP homepage title

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

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

    This issue is likely stemming from the AMP plugin that you are currently using. You can however override the title by adding the below code on your theme’s functions.php file:

    * Adjusting AMP page title tag
    * @return string
    function amp_rank_math_homepage_title_adjustment( $title ) {
    	if (function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() && is_home()) {
             $title = RankMath\Helper::replace_vars( RankMath\Helper::get_settings('titles.homepage_title') );
         return $title;
    add_filter('rank_math/frontend/title', 'amp_rank_math_homepage_title_adjustment', 16 );

    I hope this info helps. Thank you.


    But they claim they found nothing and needed FTP access

    Hi Felix,

    Thanks for the response.

    You can test this by temporarily switching to another AMP plugin and check whether the issue will still be reproduced. The above code should however be able to override the random title issue.

    Thank you.



    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/?rate=5#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.

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

The ticket ‘Random AMP homepage title’ is closed to new replies.