WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
[resolved] Print subheading (9 posts)

  1. Brian Cruikshank
    Member
    Posted 1 year ago #

    Hello,

    Thank you for your excellent plugin. I'm trying to get the subheading to print on my site, but it won't display. I've added a "print-yes" class to no avail.

    example: http://otherwords.org/the-end-of-the-farm-bill/

    Is there any way I can get this to print?

    Thank you for your help.

    Brian

    http://wordpress.org/extend/plugins/printfriendly/

  2. aisajib
    Member
    Posted 1 year ago #

    Hi,

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

    Thanks.

  3. Brian Cruikshank
    Member
    Posted 1 year ago #

    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

  4. aisajib
    Member
    Posted 1 year ago #

    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.

  5. Brian Cruikshank
    Member
    Posted 1 year ago #

    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.

  6. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    @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

  7. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    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;
    }

  9. Brian Cruikshank
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.