Shopify themes, liquid, logos, and UX
Hi,
I changed the policy page width (privacy policy and ToS) by adding the following code to base.css:
.shopify-policy__container,
.section-template--15547176648885__main-padding {
max-width: 100% !important;
width: 75% !important;
}
It worked well on desktop but it messed things up on mobile. The content is narrower and the announcement bar looks wrong. How can I make this change only affect desktop and not mobile? (I want to leave other pages as is - I only want policy pages to be wider.)
pw: niltet
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hello There,
Admin go to online store -> themes -> actions -> edit code
Find Asset >base.css and paste this at the bottom of the file:
@media only screen and (min-width: 768px) {
.shopify-policy__container, .section-template--15547176648885__main-padding {
max-width: 100%!important;
width: 75%!important;
}
}
This is an accepted solution.
Hello There,
Admin go to online store -> themes -> actions -> edit code
Find Asset >base.css and paste this at the bottom of the file:
@media only screen and (min-width: 768px) {
.shopify-policy__container, .section-template--15547176648885__main-padding {
max-width: 100%!important;
width: 75%!important;
}
}
Hi There,
Glad that the solution worked for you!
If you love the support, please add a review on our Google Business, would be really helpful?
Zestard Technologies
Thank You in advance!
Looking forward to your support.
Appreciate this solution, which I'm using now. Is there a way to edit the template of the policy page to solve the issue less 'hacky' in Dawn theme and also make more changes to the policy page? Can't seem to find the right file in the theme.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024