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

  1. mofsiz
    Posted 2 years ago #


    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?



  2. Lewis Rosenthal
    Posted 2 years 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.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Post to PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic