- Issue created by @thomas.wardin
- πΊπΈUnited States shelane
In Drupal, controlling what content gets printed can typically be handled through CSS media queries for print or by modifying the print-specific CSS styles. Here's a general approach you can take to address this:
Identify the Blocks: First, you'll need to identify the blocks that you don't want to appear when printing. Note down their IDs or classes.
Create Print-Specific CSS: You can create a print-specific CSS file where you specify styles to hide the unwanted blocks when printing. You can do this by adding a print.css file in your theme's directory or by adding print-specific styles in your theme's main CSS file.
@media print { .block-navigation, .block-footer { display: none; } }
Replace .block-navigation and .block-footer with the appropriate classes or IDs of the blocks you want to hide.
Attach the CSS File: Make sure that your print-specific CSS file is attached to the page. You can do this by modifying your theme's *.info file or by using drupal_add_css() in your theme's template.php file.
Clear the Cache: After making these changes, it's a good idea to clear Drupal's cache to ensure that the changes take effect.
- Status changed to Closed: works as designed
7 months ago 7:56pm 9 April 2024