WordPress.org

Support

Support » Plugins and Hacks » Print Friendly and PDF Button » [Resolved] Print subheading

[Resolved] Print subheading

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    Please add class print-only and see if it works.

    Thanks.

    Thanks for the response.

    If I add “print-only” to the subheading then only the subheading will show when printed.

    If I add “print-only” to the subheading and the entry-content then only the entry-content will show (subheading again disappears).

    This can be tested just by editing the page in chrome developer tools, but I also confirmed it by changing the code.

    I hope this can be fixed soon.

    Thank you for your assistance.

    Brian

    Hi,

    Can you please add “print-only” to all of the contents? Like on both the subheading as well as the entry content? I tried this in Chrome development mode and it worked.

    Yes, I can, but it doesn’t work as I described in my last post.

    Adding the “print-only” class to the “entry-content” div and the “lede” p will only show the former. The lede is does not show. Tested in latest stable Chrome 24.0.1312.57 and latest stable Firefox 19.0.

    Thank you for your assistance.

    Plugin Author printfriendly

    @printfriendly

    @brian

    Thanks for reporting this. You’ve uncovered an unusual bug. We’re looking into it and will have an answer or fix live ASAP (should have next week).

    Taylor

    Plugin Author printfriendly

    @printfriendly

    Wait a sec…

    If class=”print-only” is added to the parent div, it includes the sub-head. Only problem is, it treats it like a separate paragraph. Plus sticking the Author between the H1 and the sub-head paragraph.

    Check out this screenshot. img.am/t/The%20End%20of%20the%20Farm%20Bill%202013-02-22%2000-42-42.png

    Getting the sub-head under the header will be tricky. The challenge is, the <h1> is treated as the title, and the sub-head appears as a small unusual paragraph that isn’t in the same HTML structure as the other content(appears to the algorithm as junk).

    We’re going to meet about this first thing next week and see if we can come up with any ideas.

    Plugin Author printfriendly

    @printfriendly

    You could include the subhead in the H1. Then apply custom css.

    <h1> This is my Title
          <p class="subhead">This is my subhead</p>
    </h1>

    Custom CSS for PrintFriendly
    `.subhead{
    margin:0 0 10px 0;
    font-weight:normal;
    }

    Thanks for the possible workaround.

    Unfortunately, h1 is important tag for SEO I’m very careful with. I would rather not risk the ire of Google bots that wouldn’t understand my benign intentions.

    Thanks for the effort in coming up with a solution though.

    Brian

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Print subheading’ is closed to new replies.
Skip to toolbar