Viewing 1 replies (of 1 total)
  • Thread Starter sasa1

    (@sasa1)

    i have found out about the amp_frontend_show_canonical filter, which would allow me to omit the link rel amphtml output. – but i think this is not bulletproof enough in terms of discoverability by google.

    function ds_disable_rel_amp_html() {
      if ( has_tag('auto')){
        return false;
      }
    }
    
    add_filter( 'amp_frontend_show_canonical', 'ds_disable_rel_amp_html' );
Viewing 1 replies (of 1 total)
  • The topic ‘enable/disable amp on tag/category level’ is closed to new replies.