1. Home
  2. Troubleshooting
  3. Pagination issue when using Magplus theme

Pagination issue when using Magplus theme

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.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on May 7, 2020

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Related Articles

    Leave a Comment