Support » Plugin: WP Post to PDF » Add custom css (exclude tag with specific class)

  • 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?


Viewing 1 replies (of 1 total)
  • 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

    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.



Viewing 1 replies (of 1 total)
  • The topic ‘Add custom css (exclude tag with specific class)’ is closed to new replies.