• Hi there,

    I THINK I know the answer to this, but just wanted to confirm:

    Effectively, I’m trying to have a Block that shows ONLY on Mobile. I don’t believe the UI lets me currently do it based on my Settings for Screen Size controls.

    At present, we’re using:
    Large breakpoint: 1100px
    Medium breakpoint: 800px
    and have enabled the Desktop Control and the Mobile Control.

    (We use global settings for 400+ sites, and we thought that Tablet control was just starting to be too much clutter and unnecessary for our content providers.)

    It makes it easy to do things like “Hide this on Mobile” and “Hide this on desktop”, but the result is that in the range between 800 and 1100px, everything shows up.

    I assume that I have two options:
    1) Enable Tablet Control to give me a middle-ground between these two, so I can accomplish “Show ONLY on Mobile” by hiding from tablet and hiding from desktop.
    2) Make the Large and Medium breakpoints be the same (or 1px off?), so that every screen size is counted as either “desktop” or “mobile”

    I just wanted to make sure I wasn’t missing something, such as an option to completely Invert my logic for a Block (so that setting ‘Hide on mobile’ would do the opposite) – or if you had a different UI approach that might accomplish this with our current breakpoint settings.

    Cheers and thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi @madtownlems,

    I apologize for the delayed reply. This is an interesting application, and you are correct, the current Screen Size control was not originally designed to accomplish this.

    That said, your two suggested solutions are correct and option 2 should work for you. When the tablet control is disabled, the frontend CSS that controls the Medium breakpoint is removed. So in the plugin settings, if you set the Large and Medium breakpoints to the same value and disable the tablet option, you will get the result you’re looking for.

    There is some room here to improve the settings UI to make this functionality a bit more obvious. It took me a second to figure it out 😅

    Let me know if I can answer any additional questions.

    Thanks!

    Nick

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