Hi All, please help me to make the collapsable component the same width as the rest of my website (dawn theme).
I have made it in 2 columns through code but now it stretches the whole width of my website, when viewing on a larger screen.
I also don’t want a huge gap in between the two columns..
Please look at the picture for reference.
Would appreciate any help.
1 Like
Hi @astralresorcez , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
1 Like
Hi @astralresorcez
PLease, share your store URL. Thanks!
1 Like
Thanks for the info, try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media (min-width: 989px) {
.collapsible-content__wrapper {
max-width: var(--page-width);
margin: auto;
}
}
@media (min-width: 750px) {
.collapsible-content__wrapper {
padding: 0 3.5rem;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi, thanks for this however it’s still spanning the entire width of screen when full screen. Do you have any other suggestions?
Thanks!
Did you try to add the code? This is what it look like on my end.
I added the default max-width which is for all the max-width in your all your section. If it not working add the !important.
@media (min-width: 989px) {
.collapsible-content__wrapper {
max-width: var(--page-width) !important;
margin: auto;
}
}
@media (min-width: 750px) {
.collapsible-content__wrapper {
padding: 0 3.5rem;
}
}
And Save.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @astralresorcez
- Go to Online Store → Theme → Edit code.
- Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(min-width:930px){
.collapsible-content__wrapper.section-template--16393414901859__collapsible_content_VY3JhX-padding {
padding: 40px 36px;
}
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!