Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi all using the Porto Theme for our store and want to increase the width of the text on the policy pages.
Have had a good look through the forum and have found a couple of solutions for others that have worked but cant find some of the required files on the them that allow me to import the following
.shopify-policy__container{max-width: 1200px !important;}
there isn't a theme file in the asset folder or when i search cannot find anything relating to policy container
any idea how i may go about doing this now??
Solved! Go to the solution
This is an accepted solution.
Hello, @e-lik
Add an !important at the end of the code provided by oscprofessional, as in:
.shopify-policy__container {
max-width: 100ch !important;
}
@e-lik ,
Share the store URL.
@e-lik ,
.shopify-policy__container {
max-width: 100ch;
}
Add this css at the bottom of Online Store->Theme->Edit code->Assets->style.scss.liquid
nope didn't work, there is no scss files only style.css
@e-lik ,
Yes, import there.
I did and it has not worked
@e-lik ,
Try to add in the top or in between.
@e-lik ,
.shopify-policy__container {
max-width: 100ch;
}
You are missing ; this semicolon
This is an accepted solution.
Hello, @e-lik
Add an !important at the end of the code provided by oscprofessional, as in:
.shopify-policy__container {
max-width: 100ch !important;
}
Thank you for the confirmation, this worked and has updated the page 🙂
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