Last active
September 24, 2015 15:27
-
-
Save dancameron/d86349b900a407533b6a to your computer and use it in GitHub Desktop.
Customizing Sprout Invoice Templates (via CSS)
This file contains hidden or 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 | |
| /** | |
| * Hook into si_head hook and add a new custom CSS stylesheet. | |
| * | |
| */ | |
| function si_add_stylesheet() { | |
| echo '<link rel="stylesheet" id="sprout_doc_style-css" href="'.get_stylesheet_directory_uri() . '/css/sprout-invoices.custom-style.css" type="text/css" media="all">'; | |
| } | |
| add_action( 'si_head', 'si_add_stylesheet' ); | |
| // OR | |
| /** | |
| * Hook into si_head hook and add custom CSS. | |
| * | |
| */ | |
| function si_add_css() { | |
| ?> | |
| <style type="text/css"> | |
| #logo img { | |
| margin-top: -50px; | |
| max-height: 180px; | |
| } | |
| </style> | |
| <?php | |
| } | |
| add_action( 'si_head', 'si_add_css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment