• Resolved Jason

    (@zushiba)


    So, I have 2 tables on my page one of which is hidden via display:none;
    It is the “Print” version of the table that doesn’t include links to attachments in that record.
    With the most recent update, it seems that the plugin is now respecting the display:none; css rule and the print is now blank.

    Is there a way to tell the plugin to ignore css?

    EDIT: I should note that I’m using the #id selector to print the table.

    • This topic was modified 3 years, 3 months ago by Jason.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    Very controversial, beginning a sentence with a conjunction. However, Skeletor does love a bit of controversy (smile).

    Is there a way to tell the plugin to ignore css?

    If you mean you would like to use one CSS for the display, and another for the print, then yes!

    @media print is one option.
    This is simplified in the plugin settings under the print-css section.
    If you can share a link to the page in question and more detail on what you want /don’t want to be printed, then we can be of more assistance.

    Thread Starter Jason

    (@zushiba)

    Sure, here’s the page that I’m talking about.
    https://www.taftcollege.edu/human-resources/in-service-calendar/

    You’ll see the inservice events listed in a table, under that table is a hidden version of the table /w the attachments column removed.
    Before the the most recent-ish update, the plugin seemed to ignore the display:none; rule.

    There’s probably a better way to do this and I am open to refactoring the page.

    EDIT: Actually that did answer my question, I just added display:block; to the print-view css which I completely forgot was a thing and it’s back to it’s old functionality. I’m gonna mark this as solved, thanks!

    • This reply was modified 3 years, 3 months ago by Jason.
    • This reply was modified 3 years, 3 months ago by Jason.
    • This reply was modified 3 years, 3 months ago by Jason.
    Plugin Contributor twinpictures

    (@twinpictures)

    I see.
    The simplest solution would be to add the following CSS in the plugin settings, under the Custom Print CSS section:

    #StaffCalendarPrint {
       display: block;
    }

    Let us know how that works for you.

    Plugin Contributor twinpictures

    (@twinpictures)

    Alright! thanks for marking the issue as resolved. If you are happy with the plugin and it’s support (and you know it), consider maybe leaving a little review?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin now respects css display property?’ is closed to new replies.