# Discourse Comment Embed to Support Google AMP?

**URL:** <https://meta.discourse.org/t/discourse-comment-embed-to-support-google-amp/64721>\
**Category:** Feature\
**Created:** [18.Июнь.2017 23:47:13 UTC](https://meta.discourse.org/t/discourse-comment-embed-to-support-google-amp/64721 "2017-06-18T23:47:13Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [19.Июнь.2017 03:25:37 UTC](https://meta.discourse.org/t/discourse-comment-embed-to-support-google-amp/64721/16 "2017-06-19T03:25:37Z")

</div>

This won’t help you unless you’re using WordPress for your site. After reading this topic I tried out the [WP Discourse](https://github.com/discourse/wp-discourse) plugin combined with the Automattic amp-wp plugin. I’ve only tried this on a development site, but it seems it can be made to work by adding a function to [WP Discourse](https://github.com/discourse/wp-discourse) that appends the comments template directly to the post content when a request is made for an AMP page.

Here’s the output after making a few css changes for AMP pages (this could be improved.)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/e/6e503e5f6936c17e83deb7f09bad188318a5402c.png)

The publishing template that’s used to publish posts to Discourse can be customized to include a link back to the AMP version of the post.

 ![](https://global.discourse-cdn.com/meta/original/3X/5/6/567a664ccc23f05bab93b9e02b9ca0fc8904dc03.png)

I’m not very familiar with AMP, so there could be issues that I’m not taking into account.

---

_[View the full topic](https://meta.discourse.org/t/discourse-comment-embed-to-support-google-amp/64721)._
