New to Shopify and struggling . Need some-help with the DAWN 2.0 Theme from the expert community. I have been self trying for sometime but had no success.
I need help with 2 things as listed below
Setup a static search bar in the center of a page, like the below screenshot
Login to my account to be setup in a similar way as in the below screenshot.
I also would like this type of search bar and login. I’ve seen this on other sites. I am new to Shopify development and would like to learn how to create this. I’d appreciate it if you solve this problem to share the answer.
I didn’t bother with the login, I got a permanent search bar in my header, which means on all files. I coped the code for the search bar (took me some time to figure out which code I needed), and place it in the header.liquid file at the place I wanted it, then tweaked some CSS code to center it. Here’s what I put in the header.liquid. Note this was from the Dawn 2.0 theme, don’t know if it will work in other themes. You may need to modify it for your particular situation. I hope it helps. Not exactly like the example but it works. I left the original search icon there because you still need it for the mobile version. Not perfect, but I’m still learning liquid, which was new to me at the beginning of this project.
{%- if section.settings.logo_position != ‘top-center’ -%}
{%- if settings.predictive_search_enabled -%}
Good luck. I hope this helps. It is not perfect, but it is not bad given that it is free. You may need to make some tweaks to css code to get things lined up and centered. It is above the navigation menu bar on desktop.