follow mejoin mesubscribe

Add a Print Style Sheet to your Genesis Child Theme

The way a website prints is not necessarily how you want it to look. The good news is you can control it easily by adding a print stylesheet to your Theme.

add_action( 'wp_enqueue_scripts', 'child_print_style' );
/**
 * Add print style sheet.
 *
 * This provides the theme with the functionality to include a
 * print style sheet.
 *
 * @author Jen Baumann
 * @link http://dreamwhisperdesigns.com/?p=1035
 */ 
function child_print_style() {
	wp_enqueue_style( 'child_print_style', $src = CHILD_URL . '/print.css', 'false', '1.0.0', 'print' ); 
}

Don’t forget to create a file called print.css in your child theme folder.

About Jennifer Baumann

I am an avid horseback rider, animal lover, and freelance designer. I love working with WordPress and Genesis and work for Copyblogger Media as a Technical Support Advocate.

Dream Whisper Designs is Powered by Genesis

StudioPress Premium WordPress Themes

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.