Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/5d9395d476e3665e5fb5b4b45153f37b to your computer and use it in GitHub Desktop.
Save Pebblo/5d9395d476e3665e5fb5b4b45153f37b to your computer and use it in GitHub Desktop.
A snippet to add some custom CSS to the Invoice HTML output
<?php //Do not include the opening PHP tag if you already have one
// This snippet forces the text to be black on the print/swtich buttons shown on the the invoice.
// iOS is setting white text on a white background so this foces the buttons to be visible.
add_action('AHEE__EE_Html_Messenger_main_wrapper_template_head', 'tw_ee_AHEE__EE_Html_Messenger_main_wrapper_template_head', 10, 1);
function tw_ee_AHEE__EE_Html_Messenger_main_wrapper_template_head($message_type){
if($message_type instanceof EE_Invoice_message_type) {
echo '<style type="text/css">input.print_button{ color:#000!important }</style>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment