Make WordPress Core

Opened 2 years ago

Last modified 6 months ago

#44474 new enhancement

Add print styles to backend

Reported by: strarsis Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: css Cc:


It would be great if lists and content can be printed from WordPress backend (admin).
Currently the whole UI is printed which wastes space, ink and clutters everything, also content fields are clipped.

A dedicated default print stylesheet for WordPress backend would use a different ink-saving, reading-friendly font, remove all unnecessary UI elements, ensure that all content fields are printed completely.

Attachments (4)

44474.patch (578 bytes) - added by sabernhardt 6 months ago.
Screen Shot 2020-04-03 at 3.35.38 pm.png (174.5 KB) - added by isabel_brison 6 months ago.
UI elements can be removed from list pages.
Screen Shot 2020-04-03 at 2.42.13 pm.png (234.6 KB) - added by isabel_brison 6 months ago.
Dashboard columns overlapping
Screen Shot 2020-04-03 at 3.21.55 pm.png (181.0 KB) - added by isabel_brison 6 months ago.
Menus page

Download all attachments as: .zip

Change History (7)

#1 @sabernhardt
6 months ago

  • Focuses css added
  • Keywords has-patch added
  • Version 4.9.6 deleted

@strarsis Thanks for the suggestion!

It's worth adding at least a few print styles to WordPress core, to remove the gray background color and hide the navigation items, etc.

I think changing the font would belong better in a plugin, though, and perhaps changing (most) colors would belong there as well.

This patch makes some basic changes for printing. I chose to give the #wpcontent section a rather arbitrary 1em margin on each side so content would not run to the edge of the page.

6 months ago

This ticket was mentioned in Slack in #core-css by sabernhardt. View the logs.

6 months ago

#3 @isabel_brison
6 months ago

This is a great improvement! I think we can go a bit further and remove the UI elements from list pages such as posts (search form, bulk actions, pagination buttons, filter fields). Also perhaps it would be worth trying a single-column layout on the homepage, as right now the columns are still overlapping.

Also ran into a strange bug when printing Menus and Settings pages where the writing goes all weird, but it only happens on Chrome/Mac for some reason. It's not related to these changes though.

6 months ago

UI elements can be removed from list pages.

6 months ago

Dashboard columns overlapping

Note: See TracTickets for help on using tickets.