Solved

Header Icons

larsvilhelmsson
Tourist
11 0 2

Hi,

I've managed to change my icons to text and align them vertically using 'block,' however, I just can't find a way to align them like I've aligned my menu. I'm using the DAWN theme. Is there anyone who has the skills to help me?

Website: www.todecay.com

 

Thanks in advance, 

 

Lars

 

Screenshot 2024-04-22 at 19.11.34.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
6035 1448 1786

This is an accepted solution.

Hi @larsvilhelmsson 

Seems like the block didnt help at all. 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.header__icons {
    margin-top: -6px;
    display: flex;
    flex-direction: column;
}

 

And Save. 

Result:

Made4uoRibe_0-1713806971046.png

And if you like the icons close the each other. Use this code then. 

 

.header__icons {
    display: flex;
    flex-direction: column;
}
.header__icon, .header__icon--cart .icon {
    height: fit-content;
}

 

And Save. 

Result:

Made4uoRibe_1-1713807280747.png

Note: If it doesnt change it mean the display; flex didnt work you need to take out the display: block.

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
6035 1448 1786

This is an accepted solution.

Hi @larsvilhelmsson 

Seems like the block didnt help at all. 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.header__icons {
    margin-top: -6px;
    display: flex;
    flex-direction: column;
}

 

And Save. 

Result:

Made4uoRibe_0-1713806971046.png

And if you like the icons close the each other. Use this code then. 

 

.header__icons {
    display: flex;
    flex-direction: column;
}
.header__icon, .header__icon--cart .icon {
    height: fit-content;
}

 

And Save. 

Result:

Made4uoRibe_1-1713807280747.png

Note: If it doesnt change it mean the display; flex didnt work you need to take out the display: block.

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


larsvilhelmsson
Tourist
11 0 2

worked wonders!!! cheers

Made4uo-Ribe
Shopify Partner
6035 1448 1786

Good to hear. Would you mind to hit like also. 😊 Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com