Non Amp URL
-
Hi
I want to add non-amp url
$current_url = amp_get_current_url(); $nonAMPURL = amp_remove_endpoint( $current_url ); if ( $nonAMPURL ) { ?> <a class="view-non-amp" href="<?php echo esc_url($nonAMPURL) ?>">View Non-AMP Version</a> <?php }
but it still print amp url.
also can we rewrite ?amp to /amp.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Non Amp URL’ is closed to new replies.