WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
[resolved] Duplicate post image (7 posts)

  1. elp@
    Member
    Posted 11 months ago #

    Hello to all!

    I have a problem when I view the print preview in pdf. Appear two images related article. A small image and other media.
    To ensure that the author's name appeared I added the class 'print-only' content, even if I delete it, the result does not change.
    The theme is 'Gazette'.

    How can I do?

    Thank you!

    Elisa

    Image example:
    http://www.futuro-europa.it/capture-08-2456517-15.49.18.png

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

  2. printfriendly
    Member
    Plugin Author

    Posted 11 months ago #

    Check out this article on Print Friendly & PDF Commands.

    To remove any element, include class="print-no"

    To ensure author is included, use class="byline" or class="pf-author"

    Send me the URL of the page and I can give specific instructions.

    Let me know if that doesn't work for you.

  3. printfriendly
    Member
    Plugin Author

    Posted 11 months ago #

    You'll need to link the stylesheet to PrintFriendly. Here's an article explaining how to use the Custom Print CSS Option in WordPress.

    Another easy way, is add class="print-no" to the html element. Here's a screenshot demonstrating.

    Lastly, I'm going to take a look and see if we can remove from our end.

  4. elp@
    Member
    Posted 11 months ago #

    Doesn't work. I tried the class 'byline', removing 'print-only', and the author appears inside the post, but the images still have two (one of the current article and the other of the previous post). I also linked to the css file, but to no avail.

    The site, for now, is in maintenance mode. In private, if you believe are useful to you, I can send you your login credentials.

    I look forward to hearing from you.

    Thanks,

    Elisa

  5. elp@
    Member
    Posted 11 months ago #

    I understand the problem. is my fault, I had not noticed.
    Your plugin is in conflict with another used in the sidebar ('posts in the sidebar'). That's why duplicates images.
    Now I have to find the system because it does not do it anymore.

    Thaks again,

    Elisa

  6. elp@
    Member
    Posted 11 months ago #

    I added to the class of the thumbnails in the sidebar 'print-no'.

    Now only one image appears in the print article ;)))

    Thank you guys!

    Elisa

  7. printfriendly
    Member
    Plugin Author

    Posted 10 months ago #

    Awesome :)

Reply

You must log in to post.

About this Plugin

About this Topic