Shopify themes, liquid, logos, and UX
Hi, I am using the Combine theme on our website but on our FAQ page I want the content to not stretch over the full page width so it's easier to read. I already created a new template for this specific need but I don't manage to not have the content stretch full width. Can anyone help?
Solved! Go to the solution
This is an accepted solution.
Hi @Madeleine4,
To minimize the width of your FAQ page and match it to your breadcrumbs width, you can follow the instructions below. I think it look professional this way. The code below adjust with the screen size as well
1. From your Admin page, go to Online store > Themes > click the 3 dots > Edit code
2. The code editor will open, go to Asset folder, and open the theme.scss file
.container--large.container--vertical-space-small {
width: 100%;
max-width: 920px;
}
See the result here:
Mobile view
Hi @Madeleine4 ,
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/component-toggle.css->paste below code at the bottom of the file:
html[dir=ltr] .toggle--faq .toggle__content {
width: 50%
}
Hope my answer will help you.
Kate from PageFly Team.
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Kate, thanks so much for helping! I've tried using the code but it's still showing up full width.
You can try adding the below code at the end of the theme.css . file
.rte p:last-child {
width: 50% !important;
}
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Thanks so much for trying again. Unfortunately that also didn't work.
Maybe you added the code in the wrong place, can you show me where you put it. Thank you
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
And here where I put the first code you shared:
Hi, I placed the second code you shared a the bottom of the theme.css
When I look at your page, it seems that the lines of content have been collapsed, no longer taking up the entire width
You may try to refresh and check again
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
I see it too now! Sorry I didn't communicate well: I also wanted the lines to be shorter (and ideally the content to be centered). Attached a photo of how we had it with our previous theme which I liked.
This is an accepted solution.
Hi @Madeleine4,
To minimize the width of your FAQ page and match it to your breadcrumbs width, you can follow the instructions below. I think it look professional this way. The code below adjust with the screen size as well
1. From your Admin page, go to Online store > Themes > click the 3 dots > Edit code
2. The code editor will open, go to Asset folder, and open the theme.scss file
.container--large.container--vertical-space-small {
width: 100%;
max-width: 920px;
}
See the result here:
Mobile view
Hi, thats actually exactly what I want it to look like! Only thing: using that code if also affects the landing page an minimizes the width of the featured collection, which I don't want.
I found a workaround! I used the code you provided @made4Uo but put it as a custom css in the customize section of the theme for each content toggle section, this way it worked and showed up only there. Thank you so much!
User | RANK |
---|---|
228 | |
174 | |
65 | |
52 | |
48 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023