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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024