WordPress.org

Ready to get started?Download WordPress

Forums

Navigation prints with page - unwanted (3 posts)

  1. Guy (Wolfsong) Penrod
    Member
    Posted 1 year ago #

    I am having an issue where when someone prints a page of my site, the printout also contains the content of the main nav menu. Obviously I do not want this to happen, I just want the page to print. An ideas on what has happened or how to fix it?

  2. Gerroald
    Member
    Posted 1 year ago #

    Perhaps the cleanest way would be to make a print.css file and use visibility:hidden; to omit the code you don't need displayed. This option could give you great flexibility. One of the ways to target the style sheet would be like this:

    <link rel="alternate stylesheet" href="css/print.css" type="text/css" media="print" />

    Another alternative could be to add the code below to the bottom of your themes style.css. Add the class of .noPrint to the desired div, or visa versa.

    @media print {
    .noPrint {
        display:none;
    }
    }
  3. Guy (Wolfsong) Penrod
    Member
    Posted 1 year ago #

    Thank you Gerroald, I will give those a try! I appreciate your response. Cheers, ~Guy

Topic Closed

This topic has been closed to new replies.

About this Topic