WordPress.org

Ready to get started?Download WordPress

Forums

WP Post to PDF
Add custom css (exclude tag with specific class) (2 posts)

  1. mofsiz
    Member
    Posted 1 year ago #

    Hi,

    I'm having a gallery portfolio, where images are given out like that: <span class="print"><img></span>.
    When I click on the span, the class name will be changed.
    It will look like this <span class="print noprint"><img></span> after clicking.

    Now I want to include custom css into the pdf printout, to not display those spans with a specific class.

    Can anyone help me what and where to put in the custom css?

    Thanks.
    Mazey

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  2. Lewis Rosenthal
    Member
    Posted 1 year ago #

    Hi, Mazey...

    Which version of the plugin are you using? Versions prior to my unofficial 2.4.0 use an older TCPDF which is not as friendly to css as the latest TCPDF class.

    Using the newer version, you TCPDF does a better job of respecting css, but it is far from complete (see http://sourceforge.net/p/tcpdf/feature-requests/search/?q=css).

    You could try including your custom css in wp-post-to-pdf.php, but I'm not sure you'll get what you want just yet. If so, please let me know, as I'd like to include an option in the admin panels to define custom css.

    Cheers

    Lewis

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic