Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

print_this_page

67 sites Security covered
View on drupal.org

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

Activity

Total releases
1
First release
Jun 2025
Latest release
10 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.1 Stable Jun 8, 2025