[Resolved] Removing mobile mode while printing

Home Forums Support [Resolved] Removing mobile mode while printing

Home Forums Support Removing mobile mode while printing

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #330431
    bappleton

    When printing a page using a GP theme, the version of our site with responsive design appears on standard US Letter or a A4 paper. We’d like the default desktop view instead. I understand that this needs some custom CSS.

    Thanks in advance.

    http://appletonlaw.com/

    #330545
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Do you need all of the elements to display as they are? For example, is the sidebar important when printing?

    #330602
    bappleton

    Yes, all elements, including sidebars.

    #330797
    Tom
    Lead Developer
    Lead Developer

    You could try this:

    @media print {
        #primary.grid-75 {
            width: 75%;
            float: left;
            position: relative;
        }
    
        #left-sidebar.pull-75 {
            left: -75%;
        }
    
        #left-sidebar.grid-25 {
            width: 25%;
            float: left;
            position: relative;
            clear: none;
        }
    
        #primary.push-25 {
            left: 25%;
            
        }
    
        .left-sidebar .site-main {
            margin-left: 5px !important;
        }
    
        .menu-toggle {
            display: none !important;
        }
    
        .main-navigation ul {
            display: block !important;
        }
    }
    #331047
    bappleton

    That’s nearly it. We’re still missing the site header (logo) and page/post headers on the sheet. (Just so you know, we also modified the former and latter for the mobile view, so that needs to be bypassed in this case.)

    #331398
    Tom
    Lead Developer
    Lead Developer

    The header isn’t displaying because you’ve added it as a background image. Why not add it as a static image in Customize > Site Identity?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.