Hello Shopify community,
I try to achieve such kind of hero photo and menu bar, how i can achive that with basic free themes any ideas or suggestions?
Goal: add a floating navigation bar over a hero background image using a basic free Shopify theme.
Initial solution: a CSS tweak to fix and style the header. Steps: Online Store → Edit Code → theme.css/base.css. Code used: .header-wrapper { position: fixed; width: 95%; left: 0; right: 0; margin: auto; top: 8px; border-radius: 8px }. It worked well on the homepage.
Issue: the fixed header disrupted layouts on product, collection, and cart pages, and on mobile. The requester asked to keep the sleek floating menu only on the homepage and retain a standard fixed header elsewhere. Screenshots show the breakage.
Next steps: one responder requested store URL and collaboration code (Shopify collaborator access) to add homepage-only classes and adjust mobile responsiveness; another noted theme customization is necessary. The requester applied top padding as a quick fix.
Status: tentatively resolved with padding; being monitored. Open items: properly scoping CSS to the homepage and ensuring mobile responsiveness, likely via targeted selectors or developer collaboration.
Hello Shopify community,
I try to achieve such kind of hero photo and menu bar, how i can achive that with basic free themes any ideas or suggestions?
Hi @junktiontbs
This can be achieved using CSS code for that kindly provide the URL of the Store and password if it is password protected.
Hello @junktiontbs , Hope you are doing great, unfortunately the theme you want will be customized.
Wish you good luck for more!
Hello,
here it is https://mwpcbi-sv.myshopify.com/
Hi @junktiontbs
You can try adding this CSS hope this helps you:
You just need to follow these steps:
And past that CSS Code:
.header-wrapper { position: fixed; width: 95%; left: 0; right: 0; margin: auto; top: 8px; border-radius: 8px; }
I hope this solution works for you!
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going!
Thanks a lot Mehran!
That worked quite well!
Glade to hear that it worked if you need any help feel free to ask
One more question here, it works well on home page, but it ruins other pages like product page, collections and etc. same on mobile, how it is possible to have this nice sleek design menu on top only on home page and then all rest pages just fixed?
here you can see how it breaks product and cart page. Thanks
Hi @junktiontbs
Can you share your store URL and Collaboration code so I can add the class just for the home page and check for mobile responsive as well because this thing need some customization
I think, it solved with top paddings, lets see how it works and just in case, i’ll revert back to you! Thanks
sure always here to help any kind of