Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Print this page

76 sites Security covered
View on drupal.org

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

Activity

Total releases
1
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
1.0.1 Stable Jun 8, 2025