• I’ve implemented the Age Gate and while it works fine on desktop, the page is not responsive on mobile. It stays the same width as if on desktop. Any help would be greatly appreciated.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @dhoch14,

    There’s a grid.css file giving you:

    html { min-width: 910px; }
    html.responsive { min-width: 0px; }

    The .responsive class isn’t getting added to the page as age gate does it’s own thing with classes to avoid conflicts with theme specific styles. I’ll look at getting with a custom class field in there or HTML classes output by a theme.

    As a temporary work around there’s potentially two things to try;

    First, if the grid is something you can change, I’d just make the html always responsive, or add it later in a stylesheet so it trumps the grid:

    html { min-width: 910px; }

    If that’s not really doable, try switching to the cache bypass method for the age gate
    as that’s added after rendering has happened as doesn’t change the HTML element classes at all.

    Let me know if either work and if not I’ll push up so dev time on the plugin to make some changes

    Cheers
    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile Responsive?’ is closed to new replies.