follow mejoin mesubscribe
WooCommerce

Add a Print Style Sheet to your Genesis Child Theme

Genesis Tutorials

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.

Disable the WordPress 3.1 Admin Bar

Genesis Tutorials

The WordPress Admin Bar may be useful but has the potential to disrupt the frontend display of your site while logged in if you are using a background image. To disable the WordPress Admin Bar which is a new feature in WordPress 3.1, place this code in your theme functions.php file. This code snippet does 2 things: Disables the Admin Bar Removes the Admin Bar user options from the edit … Read More