Print.css reference for custom_functions.php in Thesis


/ Published in: PHP
Save to your folder(s)

This function assumes a custom print.css located in the custom folder.


Copy this code and paste it in your HTML
  1. function my_print_sheet() {
  2. echo '<link type="text/css" media="print" href="' . THESIS_CUSTOM_FOLDER . '/print.css" rel="stylesheet" />';
  3. }
  4. add_action('wp_head', 'my_print_sheet');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.