Once you install and activate the Magplus theme then your AMP pagination won’t be working and once you click on the pagination it will redirected to Non-AMP version and to fix it, you need to add below code in the theme’s functions.php file and once you add this code then your pagination will work properly.
// Detect AMP
add_action('wp', 'check_is_amp');
function check_is_amp(){
if ( ! function_exists('is_amp')) {
function is_amp(){
return function_exists('ampforwp_is_amp_endpoint');
}
}
}That’s it for this tutorial!!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
If you want to add an AWeber form in AMP then first you need to…
Webpushr is the fastest growing web push notifications platform that marketers love & developers rely…
Follow these steps to add Adobe Analytics in AMP Step 1: Go to WordPress Admin Area -> AMP…
Core Web Vitals are the subset of Web Vitals that apply to all web pages,…
The following reasons can be shown for non-indexing. Server error (5xx) Your server returned a 500-level…
We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80.…