URGENT : Multi Title Tag and Self Canonical

#53479
  • Resolved Mohamad Azli Aidi
    Rank Math free

    null
    null

    Hello Support Team. First of all thank you for your great support.

    Can you help me fix this issue? i have provide login details in Sensitive Data section.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Alberto
    Rank Math business

    Hello,

    I recommend you to use one of our supported AMP plugins:
    AMP for WordPress
    AMP for WP
    WP AMP Ninja
    AMP on WordPress – weeblrAMP CE
    AMP for WooCommerce
    WP AMP

    Rank Math will work out-of-the-box or with just some tweaks on those plugins and your issue will be fixed at the moment.

    Looking forward to help you.

    But, theme used on my client wordpress already build in with “Better AMP”.

    Are you using Better AMP and Rank Math AMP same time?

    Yes, im using it on the same time. Why do you asking it? You have any idea how to fix it?

    Alberto
    Rank Math business

    Hello,

    I created for you a filter so you can disable the Rank Math canonical tag and just use the one by Better AMP.

    You just need to add this code at the end of the functions.php file of your current theme, save it and clean the cache (if you have one):

    /**
     * Filter to disable Rank Math's canonical tag in Better AMP pages
     *
     * @param string $canonical The canonical URL.
     */
    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
    	if(is_better_amp()){ 
    	   return false;
    	}
    	return $canonical;
    });

    Looking forward to help you.

    • This reply was modified 3 years, 10 months ago by Alberto.

    Yes, I was also using both options. After disabling Rank Math AMP, I found the issue solved.

    Alberto
    Rank Math business

    Hello Shiraz,

    Did you try the code I posted before disabling Rank Math? It should fix your issue and if not, we will be happy to keep helping you.

    Looking forward to help you.

    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.

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

The ticket ‘URGENT : Multi Title Tag and Self Canonical’ is closed to new replies.