Shopify themes, liquid, logos, and UX
Hey, I am updating the design on my store and with this design the best way to make it beautiful is with an almost full width header. Does anybody know how to do this via code? Thanks in regards!
LINK: https://e8aaa0-3.myshopify.com
PASSWORD: mohwhi
theme; taste
Hi
Just to clarify, your header is already full with. The remaining space on the left and right are only padding. You like to take this out too?
Yeah, not fully, but a lot needs to be removed
But if you like to remove the remaining padding. Then this will be the result.
How do I do this?
Keeping responsiveness screen sizes in mind, I would recommend adding this CSS. The 1.2rem padding-left also accounts for an existing portion of the code placed on the header element, which adds -1.2rem. Attached a preview below.
media screen and (min-width: 990px) .header:not(.drawer-menu).page-width {
padding-left: 1.2rem;
padding-right: 0;
}
Where do I need to put this code?
Oh, Okay. I understand. Check this one then.
.header:not(.drawer-menu).page-width {
padding-left: 12px !important;
padding-right: 0px !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi there
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>
header.header {
padding: 0 0px 0 10px !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.
Hi, I used this code on my site and it worked for the header really well, please could you help me as I am trying to add it to the whole site to get rid of the padding left and right to make it full screen width on desktop & phone? Thank you!
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