• Resolved gfsuarez

    (@gfsuarez)


    When I put the code, in the additional CSS of the Astra Child theme it doesn’t work… All my sites are made in Astra… Astra is a very common and simple theme.

    In the previous version it works perfectly, but in 2.0 the print is wrongly positioned.

    My code:

    .printomatic {
    margin: 0 auto;
    }

    @media print {
    #Header, #Footer { display: none !important; }
    @page {
    margin-top: 1cm;
    margin-right: 0cm;
    margin-left: 0cm;
    }
    img {
    width: 95%;
    height: 95%;
    }
    }

    Basically, without this code, the plugin prints only a small image of about 100×200 px in the upper left corner of the page. With the code (and in the past version), it prints the entire page as I need.
    But I can not make it work on the 2.0 version.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    The link you posted is not using version 2.0
    If you want help migrating to 2.0 you’ll to have 2.0 installed and activated.

    Thread Starter gfsuarez

    (@gfsuarez)

    Now I did it, please kidly check @twinpictures

    Plugin Contributor twinpictures

    (@twinpictures)

    it seems that you are targeting a div with a class of is-style-default in the following format:

    <div class=".is-style-default">
       <figure class="aligncenter size-large">
          <img .../>
       </figure>
    </div>

    To test and troubleshoot, see what happens when you target the figure element with the class: size-large

    [print-me target=".size-large"/]
    

    you might also try and provide a specific class to the image and target that.

    Thread Starter gfsuarez

    (@gfsuarez)

    I tried both ways you said and still the same result. Is there any other way I can solve that @twinpictures ?

    Plugin Contributor twinpictures

    (@twinpictures)

    It’s the theme’s print css.
    If you want to continue using print-o-matic, then best roll back to the previous version until we gain more experience with different theme’s print css issues and can integrate into the 2.0 pipeline.

    Issue marked as resolved for now.

    Thread Starter gfsuarez

    (@gfsuarez)

    Thank you very much for your help @twinpictures

    I’m going to use the other vertion for now, and check for new updates.
    For the problem of openning 2 print pages at the same when clicking the print buttom. Do you know a solution?

    Plugin Contributor twinpictures

    (@twinpictures)

    two print pages?
    do you mean opening up a seperate page for the print, or are there two new pages being created on print?

    Thread Starter gfsuarez

    (@gfsuarez)

    Two new pages being created on print, please check in the same link. You must click cancel 2 times, or print to time to the pages disappear.

    Plugin Contributor twinpictures

    (@twinpictures)

    you might want to clear your cache, or try a different browser. What you are describing is not happening on this end on Chrome or Firefox at A4 size.
    If you try and cancel the print on Safari then Safari will alert a confirm dialogue before closing the new tab, but that is default behaviour for Safari.

    If you continue to have this issue, please open a new thread dealing with this specific issue, as this thread is related to the 2.0 CSS issue and has been marked as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Print code does not work since 2.0 update.’ is closed to new replies.