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:
    Code:
    @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:
    Code:
    /* 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.

Share This Page