Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrewlimaza/6b71ca6c655453510f8285c6cf07f767 to your computer and use it in GitHub Desktop.
Save andrewlimaza/6b71ca6c655453510f8285c6cf07f767 to your computer and use it in GitHub Desktop.
Adjust what is printed for the Paid Memberships Pro Members Invoice page
/**
* 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;
}
}
@andrewlimaza
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment