Hi!
How can I make the collapsible content on my theme full width, but only for the mobile view?
thank you!
How it looks now:
How I want it to look:
Shopify URL: https://65a186-44.myshopify.com/
Password: meerew
A user seeks to make collapsible content full-width exclusively on mobile devices while maintaining the current desktop layout. Screenshots illustrate the current narrow mobile appearance versus the desired full-width display.
Solutions Provided:
niraj_patel: Add CSS media query targeting screens β€767px to theme.liquid before </body>, setting .collapsible-content__wrapper .collapsible-content-wrapper-narrow to width: 100% !important; max-width: 100% !important;
Dan-From-Ryviu: Insert similar CSS code after the <head> tag in theme.liquid
Team_OSC: Modify base.css to adjust .collapsible-content-wrapper-narrow with custom padding, margin, and max-width values (85% width, 73.4rem max-width)
Outcome:
The original poster confirmed one solution worked successfully. Minor follow-up discussion suggests potential implementation questions remain unresolved.
Hi!
How can I make the collapsible content on my theme full width, but only for the mobile view?
thank you!
How it looks now:
How I want it to look:
Shopify URL: https://65a186-44.myshopify.com/
Password: meerew
Hello @letsgetwasted
You can add code by following these steps
Go to Online Store β Theme β Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Online Store > themes > More Actions > edit code > base.css
.collapsible-content__wrapper .collapsible-content-wrapper-narrow {
width: 85% !important;
max-width: 85% !important;
}
.collapsible-content-wrapper-narrow {
margin: auto;
padding-right: 0;
padding-left: 0;
max-width: 73.4rem;
}
Let me know if itβs useful by like and accept my solution.
Best Regards,
Team_OSC
This worked really nicely, thank you!
You are very welcome!
@letsgetwasted
I think you have not implemented my code ![]()