Created
February 24, 2023 07:55
-
-
Save ipokkel/f39a2225043f237d5c3c01c196422801 to your computer and use it in GitHub Desktop.
Example CSS to only show the invoice for print media on the PMPro Confirmation page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media print { | |
/** Hide stuff when printing **/ | |
.pmpro-confirmation .site-header, | |
.pmpro-confirmation .pmpro_actions_nav, | |
.pmpro-confirmation nav, | |
.pmpro-confirmation header, | |
.pmpro-confirmation footer { | |
display:none; | |
} | |
/** Only show this to print, tweak to only print certain ID's or classes on the page **/ | |
.pmpro_confirmation_wrap { | |
display: block; | |
} | |
/** Hide confirmation message paragraphs, tweak to suit your site **/ | |
.pmpro_confirmation_wrap > p { | |
display: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment