[Support request] Hide Menu only Print

Home Forums Support [Support request] Hide Menu only Print

Home Forums Support Hide Menu only Print

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1545812
    ilweb

    Hi,
    it is possible to hide the main menu
    when I print the page,
    using “Browser Print”

    thanks

    #1546201
    David
    Staff
    Customer Support

    Hi there,

    That should happen by default, depending on the browser / print drivers.
    Can you share a link to your site so i can take a look.

    #1546464
    ilweb

    hi,
    thanks for the intervention

    the page that interests me particularly is
    PREVENTIVO

    by clicking on PRINT QUOTE
    you see the menu at the top of the pages

    #1547392
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try adding this CSS:

    @media print {
        #site-navigation {
            display: none;
        }
    }

    Let us know 🙂

    #1548847
    ilweb

    Hi,
    unfortunately it doesn’t work
    you can see the page
    PREVENTIVO

    #1549271
    David
    Staff
    Customer Support

    How is the Print Button added to the site ?

    #1549403
    ilweb

    editor di testo con:

    "<a href="javascript:window.print();">Stampa Preventivo</a>"
    oppure
    "<a href="javascript:self.print();">Stampa Preventivo</a>"
    #1550014
    David
    Staff
    Customer Support

    Do you want just the Form to be printed?
    If so add this CSS:

    @media print {
        body * {
            visibility: hidden;
        }
    
        #section-to-print,
        #print-area * {
            visibility: visible;
        }
    
        #print-area {
            position: absolute;
            left: 0;
            top: 0;
        }
    }

    Then select the Elementor section containing the form and give it an ID of print-area

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