Viewing 5 replies - 1 through 5 (of 5 total)
  • The printed page should be the same as what is currently displayed in the browser. So, opened Toggle items are printed as such, while closed Toggle items just have the title. If this is not the case for your website, please include a link to an example page, so someone can look at the problem.

    Thread Starter Birgit

    (@birgit)

    Hm, well it does do that, but it’s not an ideal response to the print command. The accordion is used in order to avoid scrolling bonanza, but for printing purposes there is not the same need for hiding something – rather, the opposite. One could choose to print only certain pages (because there will be several, when all content on the webpage is listed), should the intention of printing be to only fetch portions of the webpage. As of now, the only option is to print the same webpage again and again, toggling each section of information inbetween each Cmd/Ctrl+P.

    Accordions are a screen function, not related to the Print function, so your criticism is not really related to this particular plugin. The only way I know to adjust print output, differing from the screen, is to use a print style sheet. Maybe it’s possible to do some advanced Javascript/CSS tricks for your concern, but that would be a different plugin to handle those options, as this is simply a collection of handy styling functions taken from the developer’s theme work.

    Still, it’s possible to print all content of a web page at one time with this shortcode setting, so that a user may open all toggle items simultaneously:

    [accordion multiopen="true"]

    Maybe that’s not “ideal,” but remember that simple free free plugins like this one are generic, and you always have the right to change the code to meet your needs.

    Thread Starter Birgit

    (@birgit)

    Thank you for your input, skarjune, greatly appreciated. A print link to a duplicate page with the accordion multiopen seems to be an acceptable solution.

    Nice idea to have a print link to another page, where all toggle items are open, which can be set with this shortcode:
    [toggle title="Item 1 Title" state="opened"]

    Else, the accordion multiopen attribute allows a user to select which toggle items are open to print. Note that having the same content on two pages would be an SEO negative for Google search.

    “Ideally” a programmer might write a JavaScript function to open or close all toggle items, but that’s not my area.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Accordion toggle on print’ is closed to new replies.