Johjoe
September 27, 2020, 3:03pm
1
Hello !
I’m using debut theme. I created “legacy policy” pages on my website, from the Shopify’s templates (Account > Settings > Legal policy).
I would like to expand the width of the policy / legal pages. The text is very narrow.
I added this code to Assets > theme.scss :
/================ Mise en page politiques légales ================ /
.shopify-policy__container {
max-width: 70% !important;
}
It works perfectly for computers ! But on my mobile I don’t like the width, I would it to be different. I would like a max-width: 100% on mobiles, and 70% on computers (like a “normal” displaying, like all others pages created with debut theme). How can I do please ?
My website is not published yet : https://theannexparis.com/
Thank you in advance for your help !
1 Like
Hello, @Johjoe
Welcome to the Shopify community!
and Thanks for your Good question.
your store is password protect can you please share us.
1 Like
UmairA
September 27, 2020, 3:31pm
3
Hi @Johjoe ,
Simply replace the code you added with the following code.
@media only screen and (min-width: 480px) {
.shopify-policy__container {
max-width: 70% !important;
}
}
@media only screen and (max-width: 480px) {
.shopify-policy__container {
max-width: 100% !important;
}
}
Replace the above code with the code you added and it’ll be 70% on desktop and 100% on mobile. Let me know if you need my help with anything else.
Best of luck with your startup!
3 Likes
Johjoe
October 3, 2020, 12:52pm
4
Perfect ! @UmairA Thank you so much for your help, it works perfectly !
Do you know where I can apply this code for the Dawn theme? I’ve tried in main-page.liquid and theme.liquid but it wouldn’t change my Policy Pages.
1 Like
@cutecatlady
can you please share store url so i will check and guide you
CaScho
November 21, 2022, 4:42pm
7
Hi, have the same question.
https://www.schraenke-geschenke.de/
Thanks for your help.
CaScho
November 21, 2022, 4:42pm
8
Hi, have the same question.
https://www.schraenke-geschenke.de/
Thanks for your help.