WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#50433 new enhancement

Twenty Twenty: Hide extraneous elements in print.css

Reported by: kjellr Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch has-screenshots
Focuses: Cc:

Description

Twenty Twenty hides many elements in the print view (e.g. the comments form, site navigation, site logo, etc.). There are still a few remaining elements that make sense to be removed too:

  • Category. This feels like an odd lead-in to the page in a printed context. In most cases, this is primarily useful for viewing more posts in that category.
  • Comment Count. The theme hides the comments in the print view, so I'm not sure that it makes sense to keep the comment count here.
  • Previous/Next posts pagination.

(In the following screenshots, the Jetpack likes + shares should be hidden too, but that may be something that the Jetpack plugin should handle itself.)

http://cldup.com/B33RQoq6Qb-1200x1200.png
http://cldup.com/4-Hwgg4dn4-1200x1200.png

Attachments (3)

50433.diff (606 bytes) - added by Hareesh Pillai 7 weeks ago.
Patch removes the elements in print mode
Before.png (274.4 KB) - added by Hareesh Pillai 7 weeks ago.
Before
After.png (138.3 KB) - added by Hareesh Pillai 7 weeks ago.
After applying the patch

Download all attachments as: .zip

Change History (5)

@Hareesh Pillai
7 weeks ago

Patch removes the elements in print mode

@Hareesh Pillai
7 weeks ago

Before

@Hareesh Pillai
7 weeks ago

After applying the patch

#1 @Hareesh Pillai
7 weeks ago

  • Keywords has-patch has-screenshots added

#2 @kjellr
7 weeks ago

Thanks, @hareesh-pillai, this patch works in my testing. ✅

Note: See TracTickets for help on using tickets.