Title: Post template issue
Last modified: August 17, 2021

---

# Post template issue

 *  Resolved [webzer](https://wordpress.org/support/users/webzer/)
 * (@webzer)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/)
 * Hello,
 * I installed the plugin and configured the template mode reader with the AMP Legacy
   theme to be used in posts, but I’m having some issues in the display. All of 
   the content on the page appears to be contained within a single tag and ends 
   up losing its style.
 * I put a link to a post as an example.
 * If you can provide any help I would appreciate it,
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpost-template-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14776191)
 * Hello [@webzer](https://wordpress.org/support/users/webzer/)
 * Thank you for the support topic, the AMP legacy theme do not add navigation menu
   on your AMP page.
 * Can you please check which plugin is adding that navigation menu along with left
   and right sidebars?
 * The div’s with classes `uk-navbar-container`, `uk-container` etc. are being added
   to your site by some third-party plugin or your editor.
 * Alternatively please add the following code snippet in your active themes functions.
   php or in a custom plugin to fix the issue at some extent.
 *     ```
       add_action(
       	'amp_post_template_css',
       	function () {
       		// only CSS here please...
       		?>
       		nav.uk-navbar-container .uk-navbar-left, header#site-header>.uk-container .uk-navbar-container .uk-navbar-right, #offcanvas-nav {
           display: none;
       }
       main#site-main {
           width: 100%;
           display: inline-block;
           position: relative;
           clear: both;
       }
       footer.site-footer {
           position: relative;
           display: inline-block;
           width: 100%;
           height: auto;
       }
   
       header#site-header>.uk-container {
           padding: 10px;
       }
       		<?php
       	}
       );
       ```
   
 *  Thread Starter [webzer](https://wordpress.org/support/users/webzer/)
 * (@webzer)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14781950)
 * Hello [@milindmore22](https://wordpress.org/support/users/milindmore22/)
    thanks
   for helping with this
 * I added this code to my theme’s functions.php but I didn’t notice any difference.
   
   The navigation menu and sidebars are added by the theme used.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14783578)
 * Hello [@webzer](https://wordpress.org/support/users/webzer/)
 * I think your theme is build differently than regular WordPress theme, that may
   be the reason CSS didn’t worked when it was added in functions.php
 * Can you please download and install [this simple plugin](https://gist.github.com/milindmore22/7fd81d260744ec4fc875982eb3ac5757)
   and check if that works for you.
 * **As I mentioned in my previous response The AMP legacy theme (The theme built-
   in AMP plugin) do no add any menus I will recommend contacting your theme author
   and check why it’s rendering header (menus) in content.**
    -  This reply was modified 4 years, 9 months ago by [Milind More](https://wordpress.org/support/users/milindmore22/).
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14811610)
 * [@webzer](https://wordpress.org/support/users/webzer/) Checking in here – were
   you able to download the plugin, and did that resolve your issue? Thanks!
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14843212)
 * [@webzer](https://wordpress.org/support/users/webzer/)
    As we didn’t receive 
   a response I’ll mark this as resolved. Feel free to open a [new support topic](https://wordpress.org/support/plugin/amp/#new-post)
   if you require any further assistance.
 *  Thread Starter [webzer](https://wordpress.org/support/users/webzer/)
 * (@webzer)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14852075)
 * Guys, thanks for the help with this.
    I was able to identify the issue, is that
   our theme uses a nav menu with JavaScript that ends up causing problems on the
   page and breaking the layout. We will have to remove the nav menu for this template
   and try some other solution.
 * Do you have any tips for this?
 * I found [this plugin](https://gist.github.com/westonruter/b22cfae13f0862d5b9716c776c60f882)
   in another thread but I still can’t get it to work on our site. I’m not sure 
   it’s suitable for my case.
 * Thanks!!
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14854231)
 * Hello [@webzer](https://wordpress.org/support/users/webzer/)
 * Thanks for checking back with us, As we checked before [your theme is built differently](https://adultautismcenter.org/wp-content/themes/spark/)
   so we may not be able to help you remove the navigation menu, you will have to
   contact your theme author for the same.
 * but if you are looking for a navigation menu on Legacy Theme, feel free to checkout
   [AMP Sidebar Hamburger Menu](https://wordpress.org/plugins/amp-sidebar-hamburger-menu/)
   plugin
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14878753)
 * [@webzer](https://wordpress.org/support/users/webzer/) As we haven’t received
   a response, I’ll mark this as resolved. Feel free to open a [new support topic](https://wordpress.org/support/plugin/amp/#new-post)
   if you continue to encounter issues, or reopen this topic and we’d be happy to
   assist. Thank you!

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

The topic ‘Post template issue’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/post-template-issue/#post-14878753)
 * Status: resolved