Shopify themes, liquid, logos, and UX
This is an accepted solution.
Hey @omidrahimi00786,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.page-width:has(h1.h0) {
max-width: var(--page-width);
padding-left: 5rem;
padding-right: 5rem;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hey @omidrahimi00786,
Could you provide the link to your store?
This is an accepted solution.
Hey @omidrahimi00786,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.page-width:has(h1.h0) {
max-width: var(--page-width);
padding-left: 5rem;
padding-right: 5rem;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Okej
Check this one .
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media screen and (min-width: 990px){
.page-width--narrow {
max-width: 110rem !important;
padding-right: 5rem !important;
padding-left: 5rem !important;
}
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.page-width {
max-width: var(--page-width) !important;
padding-left: 5rem !important;
padding-right: 5rem !important;
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
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