• Resolved deputy05

    (@deputy05)


    I would like to give site users the ability to print specific pages without all of the page elements in a print friendly way.

    This is the type of page I am working with.

    This is the CSS code I am working on:

    @media print {
    @page { margin: 1in 1in 1in 1in; }
    header.tc-header { border: none; }
    a.site-logo { display: block; }
    div.navbar-wrapper { display: none; }
    div.navbar-inner { display: none; }
    div#text-9 { display: none; }
    div.breadcrumb-trail.breadcrumbs::before { content: url('https://www.aumc-alliance.org/wp-content/uploads/2014/05/aumc100.png'); position: absolute; top: 0; right: 0; }
    div.breadcrumb-trail.breadcrumbs { display: block; }
    div.entry-content .noprint { display: none; }
    div.entry-content .row-fluid .span6.offset3 { display: block; }
    div.entry-content::after { content: "MY CUSTOM MESSAGE"; }
    footer#footer { display: none; }
    }

    This code does provide a usable print-out, however the text is too small (only tested in Chrome so far). This code is not currently contained in my child stylesheet…if this is necessary to troubleshoot/help, let me know.

    I am struggling with changing the inherited and custom styling of the elements I want to include in the final printed page. I have tried numerous iterations and none of the changes work.

    My ideal goal:
    1. Include site logo – upper left
    2. Add website QR code – upper right
    3. Include breadcrumb trail – 12pt black text
    4. Include boxed content – remove border, 12pt black text aligned left, allow text to fill page and wrap accordingly
    5. Add custom message – 12pt black text

    Additionally, I would like to be able to limit this print styling to either the grandchildren of a single page id or the children of 12 separate page id’s (because there will be 365 individual pages total).

    Any assistance would be greatly appreciated. If I am doing it all wrong…let me know that too.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter deputy05

    (@deputy05)

    UPDATE: I’ve managed to tackle everything except the main content. I cannot seem to undo its web styling in a manner that is acceptable or even working: border, text alignment, font size and color.

    What am I missing?

    The code has become quite long with the page id limitations (couldn’t find a simpler solution than the second option above) and extra styling, etc., so I have not included it here, but with respect to the main content it is essentially the same as above…and it is now active in my stylesheet.

    Once again, any assistance would be greatly appreciated…and if there is a better way, let me know.

    Thank you.

    Thread Starter deputy05

    (@deputy05)

    Well…just checked with other browsers…they each have their own issues…guess I just need to get a plugin instead…thought this would be fairly simple…guess not…at least not for me. ??

    Any Recommendations?

    Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Printer friendly pages’ is closed to new replies.