Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1206857

    Hi!

    I want to make my site more friendly to print with CTRL+P.

    1) How to hide the left sidebar (including the logo of the page).
    2) Is it possible to show the logo at the center – top of the first print page (but a little bit smaller)?

    I have tried with old forum posts, but I can not help with them, because of print.css is now part of base.css. https://kriesi.at/support/topic/cant-find-a-print-css-file/

    Greetings!

    #1207426

    Hey bcerin,
    Sorry for the late reply, you can add the media query @media print{ your-style-here } to your custom stylesheet.
    For example, this css will remove the sidebar header from the print version.
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media print{
    	#header {
    		display: none !important; 
    	}
    	.html_header_left #main {
            margin-left: 0px !important; 
    	}
    }

    After applying the css, Please clear your browser cache and check.
    Please see the screenshots in Private Content area of the print preview with and without the css.
    You can add more css rules between the first and last brackets.

    Best regards,
    Mike

    #1208470

    Hi!

    Thanks for the excellent theme and support. Now it is much better.

    I have some more questions.
    1) Is it possible to add the logo of the site on the right top corner?
    2) I want to hide the top and left lines.
    3) On the print page, I can see Icon and image under Icon. How to hide the image and show only icon?

    Greetings!

    Print

    #1208472

    Image one more time.

    Print

    #1208809

    Hi,
    I was able to remove the lines, but I can’t add your logo because the header is hidden. Here are some good articles for the “print media” css, Print Basics, Perfect Print Stylesheet
    2020-05-01_054655.png
    I also removed the background image:
    2020-05-01_054812.png
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media print{
    .template-page.content {
    width: 100%; 
    margin: 20px 0 0 0; 
    float: none;
    }
    h1 {
    	margin-top: 20px !important; 
    }
    .main_color span {
    border-color: transparent !important; 
    }
    .avia-icongrid-flipback {
    display: none !important; 
    }
    p {orphans: 3;}
    @page { margin: 0cm }
    }

    If you would like a message on the top of your print pages, try adding this css to your print media rule:

    .template-page.content:before {
    content: "\ Thank you for printing our article. We hope that some of our other articles can catch your eye as well.";
    color: #777 !important;
    font-size: 1em;
    padding: 30px 0;
    text-align: center !important;    
    }

    2020-05-01_055921.png

    Best regards,
    Mike

    #1208825

    Thanks for all support.

    #1208850

    Sorry, again me.

    Now it is a problem because on the second page is page margin set on 0cm.

    As I understand your css code you tried to make lines transparent. But they are still wisible if I change a top and left margin.

    #1208951

    Hi,
    As I examine the print preview there is a page inside of a page, so try changing the margin in .template-page.content, which is your actual page, and not in @page which is the preview frame.

    Best regards,
    Mike

    #1209928

    Even if I change margin in .template-page.content does not help. Look at the picture.

    I noticed also in the Firefox browser I can see onli the firs page.

    Code is now:

    @media print{
        #header {
            display: none !important; 
        }
        .html_header_left #main {
                margin-left: 0px !important; 
        }
    
        .template-page.content {
            width: 100%; 
            margin: 20px 0 0 0;
            float: none;
        }
        h1 {
            margin-top: 20px !important; 
        }
        .main_color span {
            border-color: transparent !important; 
        }
        .avia-icongrid-flipback {
            display: none !important; 
        }
        p {orphans: 3;}
        @page { margin: 0cm }
    }

    Greetings!

    Enfold

    #1209933

    Hi,
    I’m not sure what you are trying to do, your arrow is pointing to a toggle which is indented and not affected by the margin.
    2020-05-05_070256.png
    2020-05-05_070405.png
    You will also notice that the preview is different in different browsers and the preview is only a rough view of the print page, the actual print is a little different.

    Best regards,
    Mike

    #1210004
    This reply has been marked as private.
    #1210335

    Hi,
    Thanks for the video, apparently firefox has a known printing issue, the Mozilla support suggests using a plugin to correct. This doesn’t occur with Chrome.
    I believe the gray line is added by the browser print function and can’t be overridden. This article explains the limitations of the print.css, here is a more in-depth article about print.css, unfortunately, I didn’t find anything that can hide this line.

    Best regards,
    Mike

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