AMP Support in Neve

What is AMP (Accelerated Mobile Pages)

AMP for WordPress is a plugin that is capable of making full use of Neve's speed. Neve is an AMP-ready theme capable of lowering down your loading times for a more fluid experience. In order to use Neve at its full potential, you would need to install the AMP for WordPress plugin to enable AMP on your website.

Neve's options and AMP

AMP itself has a few limitations, like not allowing JS to render on mobile devices and restricting the size of the CSS to 50 KB. These restrictions make it difficult for Neve and Neve Pro's entire options to work well with AMP, as complex features usually require JS and CSS. But don't worry, for this kind of options, we've made sure to offer a safe fallback in AMP. 

This is a list of Neve's and Neve Pro's features that don't work in AMP:

  • Sticky header

This is a list of Neve's and Neve Pro's features that don't work in AMP but offer a safe fallback ( this means that nothing will break your site, we'll just use alternative options ):

  • WooCommerce Booster's Infinite Scroll on the shop page ( default pagination is used )
  • Blog Booster's Infinite Scroll on the blog page ( default pagination is used )
  • Blog Booster's Show/hide mechanism for comments on single post pages ( comments form is always displayed )

An important thing to keep in mind here is that other plugins could also cause issues with AMP. For example, if you are using WooCommerce, some options that require JS will likely not work in AMP, and it can cause other problems.

Remove Neve's paired mode

By default, Neve offers support for AMP paired mode. If you want to remove Neve's paired mode, just add the following piece of code in your child theme's functions.php file. Check this for more details on how to create a child theme for Neve. 

add_filter( 'neve_filter_amp_support', 'neve_remove_amp_paired_mode', 10 );
function neve_remove_amp_paired_mode() {
    return array( 'paired' => false );
}

Disable Neve's AMP support

If you want to disable Neve's AMP support, just add the following piece of code in your child theme's functions.php file. Check this for more details on how to create a child theme for Neve. 

// Disable Neve's AMP support.
add_filter( 'neve_filter_amp_support', '__return_false' );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.