Support » Plugin: AMP for WP - Accelerated Mobile Pages » Custom page template not working with AMP

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. The custom page template is working with AMP. Can you please follow the tutorial?

    Tutorial: https://ampforwp.com/tutorials/article/create-custom-template-post-type-taxonomy-amp-theme-framework/

    Hi

    I have follow your instruction but not working, here is steps which we have done

    1) Create one page template inside twenty seventeen theme
    2) Install Theme framework plugin
    3) copy and paste page template from step no1 and put inside : /public_html/wp-content/plugins/amp-theme-framework-master
    4) Create one page like: AMP TEST -> assign that page template and tried to run that page but that is not working i mean file is not calling and showing empty page with Just header/footer and title of page.

    Now let me know what steps i have missed ? We are going to buy PRO version but even we are stuck at free plugin so please advice asap.

    Thanks
    Logicrays

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. In the third step copy and paste the page template and then you need to rename that file as page-{$pagename}.php or page-{$id}.php and in that, you need to add that page name or ID and it will work as expected.

    Hi Ahmed

    I am sorry but nothing is working like you said. You said need to create file name like page-{$pagename}.php but you haven’t done same thing in your video:

    https://ampforwp.com/tutorials/article/create-custom-template-post-type-taxonomy-amp-theme-framework/

    How to create a Custom Page Template in AMP Theme Framework.

    I have checked video more then 5 times but you haven’t done like you said in your last reply.

    are you sure that custom page template will work with AMP? if not then we will check for alternate way to do.

    Please advice.

    Thanks
    LR

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    I’m very sorry LR, I misunderstood your question.

    I thought you meant “custom Post type”, I can clearly see it’s for “Custom Page Template”

    Can you clear my one doubt before I share the code to get it working?

    My doubt is, that you want to use AMP theme framework and inside that, you want to over-ride a specific custom page template, so you can add your custom code in it. Did I get that right?

    Kindly just let me know, so I will get full clarity and share you the code.

    Hi
    it’s ok no worries 🙂

    Yes i have installed AMP theme framework plugin and my main theme is Twenty seventeen
    but for AMP I think we need to Add all our custom templates to that plugin folder yes but somehow that is not working so please advice as we have done our code for custom page template but stuck in AMP for custom page template.

    Thanks
    LR

    Hi @ahmed Kaludi

    any thoughts?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We realize that we don’t have support on the custom page template. So we have created a ticket for this issue. It will be fixing this in our future updates.

    Reference: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/4244

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom page template not working with AMP’ is closed to new replies.