Created
January 31, 2023 12:17
-
-
Save Pebblo/5d9395d476e3665e5fb5b4b45153f37b to your computer and use it in GitHub Desktop.
A snippet to add some custom CSS to the Invoice HTML output
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
<?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