1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 There are a way to disable notices for mobile users?

Discussion in 'XenForo Questions and Support' started by Markos, Oct 11, 2014.

  1. Markos

    Markos Well-Known Member

    I need to show a notice only to desktop users. How i can do that?
  2. Mike

    Mike XenForo Developer Staff Member

    There's no built in option to do that.
    Markos likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    Indeed. No option, but you can hide all notices from narrow screens with this CSS:
    @media (max-width:@maxResponsiveNarrowWidth)
        .Responsive #Notices
            display: none!important;
    Last edited: Apr 13, 2015
    RoldanLT and Markos like this.
  4. RoldanLT

    RoldanLT Well-Known Member

    Doesn't work for me :/
  5. RoldanLT

    RoldanLT Well-Known Member

    Works for me:
    /* disable notices for mobile */
    @media (max-width:@maxResponsiveMediumWidth) {
    .Responsive #Notices.PanelScroller { display: none !important; }
  6. Chris D

    Chris D XenForo Developer Staff Member

    Works for me, but it does need the !important declaration so I've updated that post.
    RoldanLT likes this.
  7. Biarritz64

    Biarritz64 Active Member

    Hi @Chris D ,

    i add your code in EXTRA.css,
    it doesn't work for me, any idea?

    thank you
  8. Biarritz64

    Biarritz64 Active Member

    ps i use xen notices

Share This Page