Shopify themes, liquid, logos, and UX
Hi everyone 👋
I was wondering if someone could help me - I have a bespoke svg for my search icon and would like to reuse it for my cart icon (in its original template position — the opposite of search icon).
I would also like my header static/fixed so it is constantly at the top of screen whilst scrolling!
So header appears as so (search is left - already placed / cart is right - needs placing) :
Might anyone be able to help with that?
Link: https://1295c5-13.myshopify.com
Thanks so much!!
Joe
Solved! Go to the solution
This is an accepted solution.
@JG123, to fixed your header at the top follow these step
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </body> tag:
<style>
#shopify-section-header {
position: fixed;
z-index: 1000;
}
.site-nav {
margin: 0 !important;
background: #fff !important;
}
#MainContent {
margin-top: 178px;
}
@media only screen and (max-width: 749px) {
#MainContent {
margin-top: 126px !important;
}
}
@media only screen and (max-width: 400px) {
#MainContent {
margin-top: 92px !important;
}
}
</style>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hey @JG123
Your store is password protected, can you share the password as well?
Best Regards,
Moeed
Hey Moeed!
Sure, it’s: dellsfarm
Thanks!
This is an accepted solution.
@JG123, to fixed your header at the top follow these step
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </body> tag:
<style>
#shopify-section-header {
position: fixed;
z-index: 1000;
}
.site-nav {
margin: 0 !important;
background: #fff !important;
}
#MainContent {
margin-top: 178px;
}
@media only screen and (max-width: 749px) {
#MainContent {
margin-top: 126px !important;
}
}
@media only screen and (max-width: 400px) {
#MainContent {
margin-top: 92px !important;
}
}
</style>
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Worked a treat - 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