twentysixteen icon indicating copy to clipboard operation
twentysixteen copied to clipboard

Class entry-content div contains too much

Open chrisaldrich opened this issue 8 years ago • 7 comments

It appears that the <div class="entry-content"> spans more content than it should. (I'm actually a bit surprised that a modern facing theme like TwentySixteen doesn't fully support microformats 2 instead of the older microformats1 spec.)

Specifically I think that the entry-content div should end before the following functionalities when they're included: <div class="sharedaddy> (Jetpack's Share This functionality), <div id="jp-relatedposts"> (Jetpack's related posts functionality) <div class-"author-info"> (Gravatar author information)

Essentially the semantic class "entry-content" should only contain the content written in the body of a post by the user and shouldn't really include the additional information by these other plugins.

As an example, by having entry-content include these additional pieces, users, when syndicating content semantically to other services like Tumblr, Facebook, or even RSS readers, will include this additional (often unwanted content). See also: https://github.com/kylewm/KnownReactions/issues/11#issuecomment-224120974 https://github.com/dshanske/syndication-links/issues/23

Cross Reference: http://microformats.org/wiki/hentry

chrisaldrich avatar Jun 07 '16 03:06 chrisaldrich

Personally, I don't see the issue with using entry-content as we are in this case.

karmatosed avatar Jun 10 '16 20:06 karmatosed

I would have to agree with @chrisaldrich that entry content should be limited to the content itself.

dshanske avatar Jun 14 '16 18:06 dshanske

Personally, I don't see the issue with using entry-content as we are in this case.

It's wrong and not semantic.

+1 for @chrisaldrich proposal.

miklb avatar Jun 14 '16 18:06 miklb

This is just a matter of having entry-content just surround the_content.

dshanske avatar Jun 14 '16 18:06 dshanske

entry-content should be content only, unless the sharing buttons are considered to be part of the content; they shouldn't be though.

petermolnar avatar Jun 15 '16 08:06 petermolnar

I still don't agree as everything is 'content' so that's a really weird statement to claim 'only content should be there' - if we're being correct language wise. However, I'm also not seeing a patch for us to test the implications of this.

A good next step would be to have such a patch and then we can iterate. I do worry about what impact moving something like this has at this stage of the theme's life on child themes and other plugins. We should test that and also test on other devices.

karmatosed avatar Jul 09 '16 15:07 karmatosed

I could try my hand at it.

dshanske avatar Jul 09 '16 20:07 dshanske