WordPress.org

Forums

zeeMagazine
make a page with no sidebars for printing (6 posts)

  1. brio39
    Member
    Posted 1 year ago #

    I want to make a page open with no sidebars or just a blank page with the content on it. Is this possible? I want to have the viewer be able to print an application. Or is there another way to do this?

    Here is the page

    Thanks!

  2. Dennis Barber
    Member
    Posted 1 year ago #

    Add this to your child-theme stylesheet:

    @media print {
        #header, #secondary, #tertiary, #footer { display: none; }
    }

    If you want to keep the header and or footer when the page prints simply remove the #header and/or #footer and the corresponding commas.

  3. brio39
    Member
    Posted 1 year ago #

    Thanks,
    I use the code but the left sidebar is still showing up. Is there a way to get rid of that too?

  4. brio39
    Member
    Posted 1 year ago #

    Also, do you know if there is a way for the links in a post to be active when on the front page? You can click on them on the individual post page but not on the home page.

  5. batharoy
    Member
    Posted 1 year ago #

    Change your @media query to this.

    @media print {
        #header, #secondary, #secondary aside, #tertiary, #footer {
            display: none;
    }

    The menus work fine for me using Chrome & Firefox.

  6. brio39
    Member
    Posted 1 year ago #

    Perfect, thank you. The printing preview is working without sidebars now.

    But on the home page the click here for more information isn't showing as a link. Only on the individual post page. That seems weird to me.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic