Created
April 28, 2021 09:46
-
-
Save andrewlimaza/6b71ca6c655453510f8285c6cf07f767 to your computer and use it in GitHub Desktop.
Adjust what is printed for the Paid Memberships Pro Members Invoice 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
/** | |
* Add this code to your WordPress Customizer under "Additional CSS". | |
* Tweak the CSS on both areas to hide and show certain elements when printing the Members Invoice. | |
*/ | |
@media print { | |
/** Hide stuff when printing **/ | |
.pmpro-invoice .site-header, .pmpro-invoice .pmpro_actions_nav, .pmpro-invoice footer { | |
display:none; | |
} | |
/** Only show this to print, tweak to only print certain ID's or classes on the page **/ | |
.pmpro_invoice_wrap { | |
display: block; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may load this to your wp_footer and only load on a certain page to make it 'smarter'. This is a template to get started and may not work with every theme and will need adjusting.
Be sure to reach out to a developer for further assistance and tweaking if needed.