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?
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.
If my reply answered your question please mark it as a solution to make it easier for others to find.
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.
If my reply answered your question please mark it as a solution to make it easier for others to find.
@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:
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.
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.