Support » Plugin: Background Manager » [Plugin: Background Manager] hide background in print stylesheet

  • Resolved andrea armstrong

    (@andrea-armstrong)


    Background manager is working great for me, except that I need it to not display when the pages print. I have tried to “display: none” it, but it is not working. Here’s how it looks in my printstyle.css:

    #myatu_bgm_bg_link, .myatu_bgm_fs, #myatu_bgm_top, .myatu_bgm_fs { display: none; }

    Is there a class or id that I’m missing? Or any other way to override the background?

    http://wordpress.org/extend/plugins/background-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author myatu

    (@myatu)

    Hi Andrea,

    The following CSS should take care of that:

    @media print {
       .myatu_bgm_fs { display: none !important; }
       body { background-image: none !important; }
    }

    This can be added to the Image Set in the Custom Stylesheet box.

    Hm, this hasn’t worked for me. I’ve got it in the custom stylesheet box, as well as my own printstyle.css.
    Here is the site I’m working on: http://co-here.ca/

    Plugin Author myatu

    (@myatu)

    Hi, sorry – there’s a need to add “!important” to the CSS style you have in your css, like so:

    @media print
    {
      #myatu_bgm_bg_link, .myatu_bgm_fs, #myatu_bgm_top, .myatu_bgm_fs, .myatu_bgm_info_blk, background-image {display:none !important;}
      }

    I’ll make this an option from within Background Manager for the next release.

    Yes! That worked. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Background Manager] hide background in print stylesheet’ is closed to new replies.