I am assuming the problem is that you do not know what to change in which place under normal circumstances. Otherwise my reply won't help... Otherwise I have misunderstood you.
When printing a page that page is rendered using the stylesheets that had media defined as all and print. I'm not really sure if the current state of the DOM tree is used or that the original html is printed. You would most likely need to define in the printing stylesheet a class that targets the hidden elements and shows them. Perhaps adding the parameter !important to make sure this is used.
I'm not sure which is the correct CSS selector, suppose it is ".block ul li.accordion-item". The CSS you need to add to the print CSS stylesheet would be:
Code:
.block ul li.accordion-item {
display: block !important;
}
Again, the selector is almost certainly wrong. Note that the !important keyword is not needed if the selector itself is strong enough.
If that doesn't work you would need to figure out what the accordion script changes in the accordion and undo that before printing...
Bookmarks