Title: Non-Amp Pages Issues
Last modified: October 5, 2020

---

# Non-Amp Pages Issues

 *  Resolved [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/)
 * Greetings!
    I have been using your AMP 2.0 plugin with great success so far, 
   but I do have one small issue:
 * I have 2 non-amp pages, which work fine when the user is not logged in:
    [https://www.digitalcitizen.ro/cse/?q=](https://www.digitalcitizen.ro/cse/?q=)
   [https://www.digitalcitizen.ro/contacteaza/](https://www.digitalcitizen.ro/contacteaza/)
 * The pages have some javascripts that make them look and feel like the AMP pages.
 * The problem appears when I am logged in: They look like this: [https://i.imgur.com/UQ8nCPR.png](https://i.imgur.com/UQ8nCPR.png)
 * As I said, I have created a special non-amp template and also disabled AMP for
   these pages …
    Do you have any clue as to whhy this pages are sown like this?
   Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnon-amp-pages-issues%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13492830)
 * Thanks for reaching out. Do you have any plugins with minification features such
   as optimization or caching plugins? If you’d like to share your Site Health information
   privately using [this form](https://docs.google.com/forms/d/1JTQmphDlk9YgHpDoFRbHXpkDqv8-QmzTT7MDR4AstyQ)
   we can inspect your current setup.
 * I’d also be curious to know if the same issue persists when you have the administrator
   toolbar toggled off when then checking while logged in.
 * ![](https://i0.wp.com/i.imgur.com/uZiLTYY.jpg?ssl=1)
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13499508)
 * Hello and sorry for the late response!
    The problem persists and now has spread
   to non-logged users tot. I Have managed to fix it somewhat by enabling AMP for
   that page and hiding the problematic elements. We do run WP-ROcket, which is 
   needed for. I have also noticed that started to happen after updating the plugin
   to version 2.0.4. Version 2.0 worked just fine. The cause seems to be that it
   does not load the javascripts I have placed in the footer, for the non-amp-pages,
   and thus it messe up the CSS somehow.
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13499735)
 * Thanks for the update. Can you inform me whether you’ve applied the [minification feature](https://wp-rocket.me/blog/wordpress-code-optimization/)
   within WP Rocket?
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13499776)
 * Yes we have but only for the javascript files.
    The page works now, somewhat,
   with the “amp enabled” option and no amp template. [https://www.digitalcitizen.ro/cse](https://www.digitalcitizen.ro/cse)
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13501172)
 * [@arafail](https://wordpress.org/support/users/arafail/) thanks for the details!
 * 1) Are you able to temporarily disable the minification options you have enabled
   or WP Rocket to see if that is involved?
 * 2) Does the issue occur when you try all modes of the AMP plugin?
 * 3) Lastly, could you describe the functionality your custom JS in the footer 
   is providing the site in more detail?
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13501905)
 * 1: Yes, I did, there was no change
    2: I cannot try all the modes as my theme
   is coded to be full AMP, by the client’s request. 3: The js simply emulates the
   hidden sidebar here: [https://www.digitalcitizen.ro/](https://www.digitalcitizen.ro/).
   It adds a class on a div, which makes it slide in and out.
 * The reason for Which I used non-amp templates is that we need Google Custom Search
   Engine, which did not work with AMP. Now it seems to work with the following 
   execeptions:
    a: If I disable AMP ([https://i.imgur.com/NlCyPng.png](https://i.imgur.com/NlCyPng.png))
   on [https://www.digitalcitizen.ro/cse/](https://www.digitalcitizen.ro/cse/) it
   looks like this: [https://i.imgur.com/Uvpxd82.png](https://i.imgur.com/Uvpxd82.png)
   b: If I enable AMP and use a non-amp template it looks like this and works fine,
   but the hamburger button (JS) does nothing:[https://i.imgur.com/5k2xyq0.png](https://i.imgur.com/5k2xyq0.png)
   c: If enable AMP and use an AMP template, the seearch work, but it takes me out
   of the website: [https://i.imgur.com/QFaGGrx.png](https://i.imgur.com/QFaGGrx.png)
    -  This reply was modified 5 years, 11 months ago by [arafail](https://wordpress.org/support/users/arafail/).
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13502032)
 * Do you by any chance have a release archive? I would like to go back to V 2.0
   of the plugin.
    Everything worked perfectly with 2.0.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13504930)
 * [@arafail](https://wordpress.org/support/users/arafail/) thanks for the details!
   I’m checking with the team about your case and will follow up.
 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13506288)
 * [@arafail](https://wordpress.org/support/users/arafail/) While we are not quite
   sure why the update to 2.0.4 would affect your non-AMP templates and your menu(
   JS), were you also attempting to use the AMP sidebar component?
 * Note that enqueueing/printing the amp-sidebar script would be required, which
   can be achieved by doing the following:
 * `<?php wp_enqueue_script( 'amp-sidebar' ); ?>`
 * Here’s a [proof of concept](https://gist.github.com/westonruter/79ee1fd638e70a363c15a25ddde29db6)
   that may be helpful if you’d like to explore using the AMP sidebar component 
   in non-AMP pages.
 * Even though not recommended, you can obtain previous versions of the plugin from
   the Development tab under [Advanced View](https://wordpress.org/plugins/amp/advanced/)
   in the WP.org listing.
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13558797)
 * Hello and sorry for the delayed response.
    As I mentioned before, the problem
   I am having is with the non-amp pages. The AMP pages work fine. If you will take
   a look here, you will see the following: [https://www.digitalcitizen.ro/contacteaza/](https://www.digitalcitizen.ro/contacteaza/)
   1: The styles are are included but no applied 2: The footer scripts are included
   but because of the lacking styles, they do nothing.
 * The weird thing is, that if I set this page as “AMP” but load the “non-amp” template,
   which lacks all the amp specific scripts, the page looks fine but the form does
   not work
 *  Thread Starter [arafail](https://wordpress.org/support/users/arafail/)
 * (@arafail)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13559071)
 * Hello again!
    After a lot of tinkering I have managed to fix it. The problem 
   was in the way I included the style.css file. I used require_once and it now 
   works. Thank you, and sorry to bother you.
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13561260)
 * Glad to hear you were able to resolve it. Best of luck with the site.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Non-Amp Pages Issues’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [non-amp](https://wordpress.org/support/topic-tag/non-amp/)

 * 12 replies
 * 3 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/non-amp-pages-issues/#post-13561260)
 * Status: resolved