Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Print this page

Security covered Under active development 89 sites

This module adds a customizable print button to your website, allowing users to easily print the current page. You can configure the button's text, show or hide an icon, and exclude specific page elements from printing.

This module provides a customisable print button block allows users to print the current page. The button is accessible and can be placed in any region or entity display via the block layout or display management. The module includes options to customise the link text, show/hide the print icon, and exclude specific page elements from printing.

Features

  • Accessible print button with proper ARIA attributes
  • Visual states for hover, focus, and active interactions
  • Hidden when JavaScript is disabled to avoid confusion
  • Google Analytics integration via dataLayer events
  • Customisable link text
  • Optional print icon display (SVG-based)
  • Configurable element exclusion from printing
  • Can be placed in any block region or added to entity display

Post-Installation

Block Configuration
When placing the Print This Page block, you can configure:

  • Link Text: Customise the text displayed for the print link (default: "Print this page")
  • Show print icon: Toggle display of the print icon next to the text
  • Elements to exclude from printing: Comma-separated list of CSS selectors to hide when printing

Field Formatter Settings
When using the Print This Page formatter on a field, you can configure:

  • Link Text: Customise the text displayed for the print link
  • Show print icon: Toggle display of the print icon next to the text
  • Elements to exclude from printing: Comma-separated list of CSS selectors to hide when printing

Exclude Elements from Printing
You can specify CSS selectors (IDs, classes, or element names) that should be hidden when printing. Common examples:

  • `header, footer, aside, nav` - Hide structural elements
  • `.menu, .breadcrumb` - Hide navigation elements
  • `form, iframe` - Hide interactive elements
  • `#sidebar, .comments` - Hide specific sections

Similar projects

Although there are other print modules for Drupal, this one stands out because of its intuitive interface, wide range of configuration options, and removal of elements on print.
Print js button, Entity Print

Drupal 10–11

Ask your assistant about Print this page

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • block Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2025
Latest release
2 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.2 Stable 10–11 Jul 28, 2026
1.0.1 Stable 9–11 Jun 8, 2025