Support » Themes and Templates » Exclude stuff from the print template

  • Resolved MultiformeIngegno


    I created a print.css file on the root of my stylesheet directory and I added the css in the header.

    Now: how can I exclude things from being printed?

    For example I added this in my footer.php:

    <br style="clear:both" />
    <div id="colophon2">
    <div style="padding-top:12px; text-align:center">

    I don’t want it to be in the print page, how can I do this?

    I know that I could solve this putting the code on a footer widget, but unfortunately I can’t use ’em for this.

    Thanks in advance!

    P.S.: WordPress 3.2.1 and theme is a child of TwentyTen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • With your print stylesheet, you’re not keeping things from getting generated, you’re only keeping them from being displayed. So in your print stylesheet you would want to add something like:

    #colophon2 {display: none;}
    #colophon2 p {display: none;}


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude stuff from the print template’ is closed to new replies.