1. Home
  2. Developer Docs
  3. Theming (AMP Theme Framework)
  4. How to Activate the AMP Theme Framework

How to Activate the AMP Theme Framework

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

For example in amp-theme.php we have:

In the above code, you can see the line number 9 which mentions the name of the AMP theme, this is a 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 (under AMP > Appearance > Themes > Themes Selector ). See the screenshot

Theme Selector

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.

Updated on November 4, 2017

Was this article helpful?

Related Articles

Add A Comment