WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
pulling content from sidebars instead of main page (4 posts)

  1. socialink
    Member
    Posted 2 years ago #

    hello,
    we have page templates that pull content several times (eg sidebar featured, related posts, etc) using different queries, and the plugin is pulling the wrong "the_content" to print. how do we tell it which part of the page is the actual content?

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

  2. printfriendly
    Member
    Plugin Author

    Posted 2 years ago #

    It will help if parent elements of non-content have ID/Class names like "sidebar", "navigation", "comments", "footer".

    You can also add the class "print-no" to remove it from the printed page or PDF.

  3. socialink
    Member
    Posted 2 years ago #

    but how do we tell it which one we *do* want? the div is already classed "content" and the sidebar areas are classed sidebar. Please let us know. thanks!

  4. printfriendly
    Member
    Plugin Author

    Posted 2 years ago #

    having it tagged id="content" should do the trick.

    What's the URL, I can take a look and troubleshoot.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic