Support » Plugin: AMP » Activate manually for posts and pages

  • Resolved chillmen



    I can only use the transitional template mode because i have not enought knowledge for the standard mode.
    And i have plugins with javascript in many pages.

    I have around 80 pages and i want to use amp only on 20. Is there a way to enable AMP only on this pages, or i have no choice but to enable on all pages (from amp settings) and disable it manually for 60 pages?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne


    Thanks for reaching out. There are a few methods of enabling AMP on only the pages you prefer. If you would like to opt in as opposed to opt out for particular pages and posts you can use the below filter (added to your themes functions.php file or preferabley a custom plugin)
    add_filter( 'amp_post_status_default_enabled', '__return_false' );

    Alternatively you can use the plugins “Supported Templates” feature if the templates you wish to enable AMP on are all part of the same grouping.

    There may also be the option to replace the plugins with AMP compatible plugins, allow the plugin to automatically remove the JavaScript features on your site or use the “Plugin Suppression” feature.

    You’ll find out more on how the plugin works on the plugins FAQs page.

    Thread Starter chillmen


    it’s my third attempt to use this plugin, but still can’t understand how all the features works.
    I’ll keep trying and reading documentation till i’ll find my way

    Thank you a lot for your explanations

    Plugin Support James Osborne


    I understand. Browser through the websites documentation, the “Getting started” section in particular, while also making use of the plugins setup wizard.

    If you happen to have any further queries we’re also here to assist.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activate manually for posts and pages’ is closed to new replies.