Make WordPress Core

Opened 2 weeks ago

Last modified 13 days 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:


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.)


Attachments (3)

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

Download all attachments as: .zip

Change History (5)

@Hareesh Pillai
2 weeks ago

Patch removes the elements in print mode

@Hareesh Pillai
2 weeks ago


@Hareesh Pillai
2 weeks ago

After applying the patch

#1 @Hareesh Pillai
2 weeks ago

  • Keywords has-patch has-screenshots added

#2 @kjellr
13 days ago

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

Note: See TracTickets for help on using tickets.