• Resolved adil1641

    (@adil1641)


    hi, i have installed amp plugin. After installation, I saved the permalinks. I also declared this in functions.php
    mytheme_add_amp_support() {
    add_theme_support( ‘amp’ );
    }
    but nothing works? please suggest me what to do? and what is the procedure of using this? I have developed the site in wordpress. I want that after installing amp plugin. Site should be shown in amp version.
    please suggest me what to do?

    I found from this link that if you are using cms then follow this
    https://www.ampproject.org/docs/getting_started/quickstart#using-a-cms?

    • This topic was modified 6 years, 4 months ago by adil1641.
Viewing 12 replies - 31 through 42 (of 42 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Well, it seems you just have too much CSS in your theme. All combined, these CSS files are too large and take you over the 50KB limit:

    * bootstrap.css
    * creative_system/css/styles.css
    * creative_system/css/animations.css
    * creative_system/css/component.css

    The only advice I have is to reduce the amount of CSS you are enqueueing. That’s the only thing you can do at the moment. Maybe in the future the CSS tree shaker will be able to remove more unused rules, but as it is right now it isn’t able to reduce the CSS below the limits imposed by AMP.

    Thread Starter adil1641

    (@adil1641)

    hi, so what i can do now? please suggest me? one more things js files are also not included?

    Thread Starter adil1641

    (@adil1641)

    is there any way so that i embed component.css? please suggest me?

    Thread Starter adil1641

    (@adil1641)

    I also reduced the styles.css file size. but in vain? please suggest me the solution?

    Thread Starter adil1641

    (@adil1641)

    hi, js files are also not included? And I also reduced the css file size. but still it generates problem. please suggest me the solution?

    Plugin Author Weston Ruter

    (@westonruter)

    Custom JS is not allowed in AMP.

    Thread Starter adil1641

    (@adil1641)

    hi, from where i can add js files in amp so that page loads correctly?

    Plugin Author Weston Ruter

    (@westonruter)

    You cannot add custom JS in AMP.

    Please read https://www.ampproject.org/docs/fundamentals/spec.html

    Thread Starter adil1641

    (@adil1641)

    hi,
    1) you means to say that I have to made the website in amp from scratch?
    2) There is no solution from transferring website to amp standards?
    please suggest me?

    Plugin Author Weston Ruter

    (@westonruter)

    You’ll have to use the legacy mode given your current theme and plugins. Switching to a different theme may allow for the new paired or native modes to be used.

    Thread Starter adil1641

    (@adil1641)

    I checked the legacy mode in amp settings. From where i can check the amp version. Because using “/amp” in the end of the permalink. It will redirect to “localhost/creativesystems/”.
    Please suggest me what to do?

    Plugin Author Weston Ruter

    (@westonruter)

    Make sure you’ve enabled AMP for the Page post type.

Viewing 12 replies - 31 through 42 (of 42 total)
  • The topic ‘how to use Amp?’ is closed to new replies.