Nov 19, 2022 4:45 PM
Whenever I try to click the "Hide this module" icon in the Edit screen, it just opens the module instead of toggling the visibility of the module as expected. Am I doing something wrong?
Nov 22, 2022 7:24 AM
Thanks @TiphaineCuisset happy to help!
Hi @AShairzay, have you tried clicking the ellipsis (3 dot menu) and choosing Hide this Module to see if that works?
I believe this sidebar layout is still in beta, I'm not sure if this is a theme related bug or something to do with the new layout, I'll pass this on to the team via the dev slack to see if I can gain any additional insights.
Nov 22, 2022 11:54 AM
Hi @AShairzay did you develop the theme you are using? I'm starting to think this is a theme compatibility issue and not related to the base functionality to hide the module.
Nov 22, 2022 7:01 PM
Nov 22, 2022 7:21 PM
Hey @Jnix284 - thanks for the shout out!
@AShairzay - I believe that for the responsive show/hide option on a page, you need to add a breakpoint to your theme's theme.json file, which you'll find in the top level theme folder, like this:
You'll find the documentation here.
I hope that helps!
Stephanie O'Gay Garcia
Nov 22, 2022 4:58 AM
Thank you for reaching out.
Dec 5, 2022 8:09 AM
Hi @AShairzay ,
Thanks for posting. The reason the hide functionality isn't working as expected is because you're using a flex column, which unfortunately isn't compatible with our responsive breakpoint feature. If you were to switch to drag and drop areas for that template, you should be able to use it normally! I did flag to the team that the hide icon was showing incorrectly for the flex columns and we should now have it fixed so that it no longer appears in that situation.
Because flex columns are an older format, we will not be adding responsive breakpoint or other drag and drop area features to flex columns in the future.
I hope this helps!
Dec 5, 2022 3:54 PM
Thanks for the reply. I'll be honest, I'm a little confused why breakpoints are relevant to hiding/showing a module, but I won't worry about it. I added a boolean to the most used modules that will add a class with a "display: none" to the section if checked, and have instructed my clients to use that for now.