-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for comments #797
Comments
@westonruter creating an amp-wordpress-comments component may not be necessary (and it would be hard to land it into the library); but the referenced methods can be extended to generate a AMP-compatible format. |
I saw the |
Thinking more in general, I wonder if it would make sense to propose the creation of a set of AMP components that are specific to WordPress; given the prevalence of WP in the web ecosystem, the requirement of "general utility" would be satisfied. Will run the idea around to gather perspective. |
further information on this is on #862 |
The bare minimum it seems to add AMP support for the comment list is just to make sure that Gravatars use add_filter( 'get_avatar', function( $avatar ) {
$avatar = str_replace( '<img', '<amp-img', $avatar );
return $avatar;
} ); |
It would be great to eventually support |
Functionality looks good and works well, but I noticed a couple of items that were not as expected:
|
This is a known issue which has to be fixed in AMP itself. See ampproject/amphtml#5396 (comment) We may want to show the comment form above the list because of this? |
Hi there, Is it possible to get this functionality in lastest Wordpress, with Official AMP plugin in classic mode? I don't seem to have the capability for this. Thanks a lot |
Thanks a lot! Looks promising, though I can see that it still has some refinement coming. |
It provides a starting point for you to add comments to the classic post templates. We'll be adding full support for comments in Reader mode when selecting other themes: #4560. We'll be allowing the user to select other templates from the core themes to be used in Reader mode, and these will include comments by default. |
In order to make AMP Canonical possible (#668) we'll need native support for WordPress commenting. We could create an
amp-wordpress-comments
component, and extendcomment_form()
andwp_list_comments()
to acceptformat=amp
which would then render this.See also:
https://www.ampproject.org/docs/tutorials/login_requiring
https://ampbyexample.com/samples_templates/comment_section/
The text was updated successfully, but these errors were encountered: