Close

Account

Documentation

Forum

Menu

Comments in AMP version

  • Post count: 34
    MassimoUA
    November 4, 2019 at 4:41 pm #52593

    Hello. I’m used AMP plugin https://amp-wp.org/
    And comments dont work in AMP version.

    How I can add comments in AMP ?

    Post count: 3464
    Yoga
    November 5, 2019 at 10:44 am #52626

    Hi MassimoUA,

    Unfortunately at the moment there is no comment section on amp version.
    Let us know if you have further question.

    Thank you.

    Post count: 34
    MassimoUA
    November 5, 2019 at 4:13 pm #52661

    We need to do.
    We can do it ourselves, tell me how to do it?

    Post count: 34
    MassimoUA
    November 5, 2019 at 8:56 pm #52666

    What files should I modify to add comments to the amp version?

    Post count: 3464
    Yoga
    November 6, 2019 at 2:35 pm #52708

    Hi MassimoUA,

    You could find the file in the jnews-amp\templates\meta-comments-link.php

    Post count: 6
    Saskia
    December 23, 2019 at 6:44 am #54795

    is it possible to copy this template file to the child theme so it is update proof in case there is an update of the jnews amp plugin?

    Post count: 6713
    Ferdy
    December 23, 2019 at 1:27 pm #54836

    Hi Saskia,

    Yes, you can copy the template to the child theme. You must create a unique name folder for the AMP template on the child theme and you need to add your folder template to AMP with this hook amp_post_template_dir. Let us know if you have further questions.

    Thank you

    Post count: 6
    Saskia
    December 23, 2019 at 5:36 pm #54880

    Hi Ferdy,

    thanks for your reply!

    That sounds good!

    Maybe, also for other JNews customers who are less code-savy, you could provide a code example or extend the official documentation with a code example about how exactly to override jnews amp templates.

    Thanks!
    Saskia

    Post count: 3464
    Yoga
    December 24, 2019 at 1:08 pm #54926

    Hi Saskia,

    Thank you for the suggestion.
    Let us know if you have another question.

    Thank you.

You must be logged in to reply to this topic.