Shopify themes, liquid, logos, and UX
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.
Solved! Go to the solution
This is an accepted solution.
Hey @shellbell
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.
<style>
@media screen and (min-width: 1024px) {
details-modal.header__search {
margin-top: -120px;
}
.header__icons {
margin-top: -120px;
}
}
</style>
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @shellbell
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag.
<style>
@media screen and (min-width: 1024px) {
details-modal.header__search {
margin-top: -120px;
}
.header__icons {
margin-top: -120px;
}
}
</style>
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:
1. Go to your Shopify Admin and click on "Online Store" in the left-hand menu.
2. Click on "Themes" and then select the "Actions" dropdown menu next to your active Dawn theme. Choose "Edit code" from the list.
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:
```liquid
<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>
```
6. Rearrange these lines of code within the `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:
```liquid
<div class="header__search-contact">
<a href="/pages/contact-us">Contact Us</a>
</div>
```
9. Save the changes by clicking the "Save" button.
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.
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