• Resolved jrgong

    (@jrgong)


    First of all great work, I really enjoy the plugin

    I am using it to keep a CTA widget on top. I am planning to use the printable version to generate a PDF which users can download with a single click

    Unfortunately the fixed widgets appear on every single page of the pdf in the print version of the blog post

    How can I disable that and make them invisible?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 15026628

    (@anonymized-15026628)

    Hi jrgong

    Thank you! ??

    The print design and how its elements look like could basically be defined by your WordPress theme.

    If you are referring to the fixation of the elements you may define some CSS which applies to your print design only. You may use media queries for that and override all the inline styles which are set by Q2W3 Fixed Widget.

    For example on https://www.cannabisanbauen.net/ebooks/indoor-growing/ you could add the following CSS lines at the end of the page:

    @media print {
    #custom_html-2 { visibiliy: visible !important; position: static !important; }
    #custom_html-2_clone { display: none !important; }
    .inside-right-sidebar { height: auto !important; }
    }

    This will override the CSS from the plugin. The plugin creates a clone from the original widget item which is going to be fixed:
    The clone has to be hidden and the original one has to be set visible. If you have multiple fixed widgets you have to do it likewise. In addition there’s some CSS (height) for the Q2W3 Fixed Widget sidebar container element.

    If you want to disable the widgets in your sidebar at all you could use some CSS lines to hide them via using “display: none;”.

    A completely different approach would be if you are going to define a maximum width (in pixels) for your print design. You could use the “Disable Width” (Appearance – Fixed Widget Options) to disable the fixation if your layout width is lower than the specified value.

    Kind regards, Oliver

    Anonymous User 15026628

    (@anonymized-15026628)

    Hi jrgong

    Did that help you (see above)?

    Kind regards, Oliver

    • This reply was modified 5 years, 7 months ago by Anonymous User 15026628.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove fixed widget from print view’ is closed to new replies.