Hi is it possible to move the search, account, cart higher up closer to the announcement bar? And also near search at a link to Contact Us? I am using Dawn theme.
https://stq6d5w0wr74xk6u-73677046074.shopifypreview.com
pw bopewp
Thanks.
Hi is it possible to move the search, account, cart higher up closer to the announcement bar? And also near search at a link to Contact Us? I am using Dawn theme.
https://stq6d5w0wr74xk6u-73677046074.shopifypreview.com
pw bopewp
Thanks.
Hey @shellbell
Follow these Steps:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
You need to reduce height of logo for it as its taking a lot of space in header.
To move the search, account, and cart icons closer to the announcement bar in the Dawn theme, and add a “Contact Us” link near the search, you can follow these steps:
To move the search, account, and cart icons:
3. In the code editor, locate the header.liquid
file under the “Sections” directory.
4. Find the section of code that contains the header__toolbar
class.
5. Look for the following lines of code within that section:
<div class="header__toolbar-item">
{{ render 'search-bar' }}
</div>
<div class="header__toolbar-item">
{{ render 'customer-account' }}
</div>
<div class="header__toolbar-item">
{{ render 'cart-icon' }}
</div>
header__toolbar
section to change the order of the search, account, and cart icons as desired.To add a “Contact Us” link:
7. Still in the header.liquid
file, find the <div class="header__search">
section.
8. Inside that section, add the following code below the search bar code:
<div class="header__search-contact">
<a href="/pages/contact-us">Contact Us</a>
</div>
After making these modifications, the search, account, and cart icons should be moved closer to the announcement bar, and a “Contact Us” link will be added near the search.
Remember to preview your changes to ensure they appear as intended. If everything looks good, you can publish your changes to make them live on your website.
Please note that modifying the theme code requires basic knowledge of HTML, CSS, and Liquid. Make sure to create a backup of your theme before making any changes, and if you encounter any issues, you can revert to the backup or reach out to Shopify Support for further assistance.