Support » Theme: Blue Planet » Need to make pages look good when printing

  • Resolved carrimak


    Hi: I am using Blue Planet as a theme for a simple website for a local health district. Everything is coming along fine (we’re still in development) except I can’t find out how to make pages look “pretty” when printing. I followed the directions in this page:

    But can’t find anything linking to CSS files in the header.php template file.

    If you want to see how the site looks now; you can see it on my development server at:

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Nilambar Sharma


    You can copy this code for adding stylesheet for printing.

    function bp_child_custom_printing_styles() {
      <link rel="stylesheet" type="text/css" media="print"
        href="<?php echo get_stylesheet_directory_uri(); ?>/print.css" />
    add_action( 'wp_head', 'bp_child_custom_printing_styles' );

    Add print.css file in your child theme.

    Theme Author Nilambar Sharma


    Sample CSS file for printing.

    body {
      font-family: Georgia, serif;
      background: #fff none !important;
      color: black;
    #page a[href]:after {
    #wrap {
      clear: both !important;
      display: block !important;
      float: none !important;
      position: relative !important;
    #main {
      display: inline;
      display: none;

    Thanks. Found a plugins that’s working well for me at the moment so may continue with that for a while. But this is good info to have.


    Theme Author Nilambar Sharma


    Ok, have a great time. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need to make pages look good when printing’ is closed to new replies.