Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    If you can provide a link to the page in question, we could be of more assistance. If not, you’ll have to see how the accordion plugin being used is hiding the content. if it’s simply doing this via CSS, then you can add the required print-only CSS that will force these hidden elements to be displayed.

    it would look something like:

    @media print { 
        .name_of_hidden_class {
            display: block;
        }
    }

    The details of how CSS works and how the accordion plugin is structured are beyond the scope of support for this plugin.

    Thread Starter tschak89

    (@tschak89)

    Hi, thank you for your quick reply. Unfortunately i cannot give you the adress of the page since it is an local installation. However the structure looks like this according to the console:


    <div class=”wp-block-otfm-box-spoiler-start otfm-sp__wrapper otfm-sp__box otfm-sp__E9F0F5 js-otfm-sp__closed” role=”button” tabindex=”0″ aria-expanded=”false” data-otfm-spc=”#E9F0F5″ style=”text-align:left”><div class=”otfm-sp__title”> TITLE</strong></div><div class=”otfm-sp__content” style=”height:0;opacity:0;visibility:hidden;”>CONTENT<div></div>

    @media print {
    .otfm-sp__content {
    display: block;
    }
    }
    Would this be the right code? Where do i have to put this? in a plugin setting field?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘printing collapsed accordions’ is closed to new replies.