Shopify themes, liquid, logos, and UX
I have "pages" using the theme template "default page" within the Taste theme. In some of these pages I am linking them to my various policies. When the policy is displayed on the page the width is very narrow, much narrower than anything else in the Taste theme.
I tried to find somewhere in the code where I could modify the css for this, but it appears these policies are actually pulled from the shopify cdn and not actually stored in my theme?
The default page template itself is different from the collection or product pages, it's baffling to me why they would do this, it looks very unprofessional.
UPDATE: Ok, so I got this kind of working by adding the following code to my theme.liquid:
<style> .shopify-policy__container { max-width: 1400px !important; } .shopify-policy__title { text-align: left !important; } </style>
I'd say it works like 90% because once browser window is resized to a certain width you get this:
I'm sure it's because specify 1400px is probably too restrictive and the rest of the site is doing something more dynamic, but I'm not sure how to fix it.
Hi, @thisistheway
Can you please share the store URL so that I can assist you?
@thisistheway Please remove the code you used to adjust the width and use below code. It will match the policies page width as collection page.
.shopify-policy__container {
max-width: 100% !important;
padding: 0 5rem !important;
}
.shopify-policy__title {
text-align: left !important;
}
@media screen and (max-width: 750px) {
.shopify-policy__container {
padding: 0 1.5rem !important;
}
}
Hi Vis,
Thanks so much for helping out. I've used your code as a starting point and continued to tweak and I've got something that looks 99% correct:
.shopify-policy__container {
max-width: var(--page-width) !important;
padding: 0 5rem !important;
}
.shopify-policy__title {
text-align: left !important;
}
Now I just need to align all the pages ('About Us' is using default page template and 'Contact us' is using contact page template).
www.stealthiscoffee is the url and 123 is the password if you want to check and give me any tips.
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