How to Activate the AMP Theme Framework

Follow these step to Activate the AMP Theme Framework

  • Download and Install AMP Theme Framework
  • Upload and Activate
  • Done! The AMP Theme Framework will be visible on the AMP version of your site.

The themes on AMP are detected from the plugin header which has a specific attribute.

For example in amp-theme.php we have:

/*
Plugin Name: AMP Theme Framework
Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
Description: Create AMP Themes easily with help of AMP Framework
Version: 1.0
Author: AMPforWP Team
Author URI: http://ampforwp.com/amp-theme-framework
License: GPL2
AMP: AMP Theme Framework
*/

In the above code, you can see the line number 9 which mentions the name of the AMP theme, this is required if you are creating an AMP Theme.

When you add this line, then AMPforWP will automatically detect it as a theme and display it in the Dropdown menu of the design selector.

You will find this option in the WordPress Dashboard -> AMP option panel -> Design -> Themes -> Select AMP Theme Framework option see the below screenshot.

When you select the theme from this dropdown and save it then it will start working.

From here, You can either Go to Template Structure or Have a look at Components.

To make it easy, we have created a video tutorial

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.

Share
Published by
Ahmed Kaludi

How to create an AWeber form in AMP

If you want to add an AWeber form in AMP then first you need to…

3 years ago

How to setup webpushr notification in AMP

Webpushr is the fastest growing web push notifications platform that marketers love & developers rely…

3 years ago

How to add Adobe Analytics in AMP

Follow these steps to add Adobe Analytics in AMP Step 1: Go to WordPress Admin Area -> AMP…

3 years ago

What is the CWV plugin all about

Core Web Vitals are the subset of Web Vitals that apply to all web pages,…

3 years ago

How to fix “Alternate page with proper canonical tag” Page Index issue in Google Search Console

The following reasons can be shown for non-indexing. Server error (5xx) Your server returned a 500-level…

3 years ago

Google Analytics ( GA4 ) integration in AMPforWP

We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80.…

4 years ago