• Resolved Nikodemsky

    (@nikodemsky)


    I’m looking for kinda “weird” option for menu – i would like to hide menu on mobile devices and start showing on big screens. In short – reverse breakpoint.

    For example how i would like it to work:

    @media screen and (max-width: 800px) {
    button#responsive-menu-button {
        display: none
    }}
    
    @media screen and (min-width: 801px) {
    button#responsive-menu-button {
        display: inline-block;
    }}

    of course this code won’t work, because plugin overwrites any css regarding breakpoints anyway.

    Is that even possible? I mean it would take only to change max-width to min-width in initial setup.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    You could edit the app.css.twig file directly to achieve this.

    I wouldnt normally suggest editing core plugin files but you would have to rewrite all of the CSS otherwise.

    Although thinking about it, you also have the JavaScript side of things to think about so it’s not such a straightforward change I’m afraid and would need you to update the files again on each update.

    The plugins not really built to work that way around unfortunately.

    Peter

    Thread Starter Nikodemsky

    (@nikodemsky)

    Thank you, i can already see what i need to edit.

    You are completely right about editing core files – i’m also aggainst it, nobody likes version-control 🙂

    Is there any chance, that you might implement hook/filter or whatever to change this option(to reverse it)? In that case i would need to write few lines in functions.php instead of editing core files on every plugin update. That might come handy for another users in future too.

    Hey there,

    I can certainly put it on my development list for you but I only tend to put something to the top of that queue if it gets asked more than a couple of times.

    This is the first request of this kind I’ve had so I can’t promise much at the moment.

    I’m quite interested in why you want to reverse the breakpoint though for your particular site?

    Peter

    Thread Starter Nikodemsky

    (@nikodemsky)

    It’s for low-budget project, normally i would use built-in menu or rewrite it for my needs, but your plugin was the fastest way to achieve what i needed. The theme i’m using does have it’s own menu for mobile devices but it’s primary menu is top-bar type and it would take a lot of time to rewrite it for side-slide menu(not mentioning completely rewriting stylesheet for it)

    I know it’s not best approach to a problem, but tight budget calls for desperate measures sometimes 🙂

    Hey there,

    Thanks for letting me know – there’s no problem with it, I was just interested in the reason that’s why 🙂

    Peter

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Reverse breakpoint?’ is closed to new replies.