Can't Resize Custom Icons

Solved

Can't Resize Custom Icons

Samirnzf
New Member
7 0 0

How should I resize the account icon only for desktop so it match the cart icon? I can change the ViewBox, but then the icon is too small on mobile. I have to choose where I want it to be looking good..

 

I couldn't find a piece of code to change it when its in the drawer (mobile), so a code for desktop only would be perfect!

 

Its looking like this right now:

imabugggge.png

 

URL: http://dripplugbg.com

Accepted Solution (1)
Moeed
Shopify Partner
5544 1502 1792

This is an accepted solution.

Hey @Samirnzf 

 

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>
a.header__icon.header__icon--account.link.focus-inset.small-hide span.svg-wrapper {
    width: 30px !important;
    top: 5px !important;
    position: relative;
}
</style>

RESULT:

Moeed_0-1727296840561.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 6 (6)

brandography
Shopify Partner
136 27 25

Hi @Samirnzf , you can use media queries to adjust the size per viewport size. Can you share a link to the page you are looking at and what theme you are using?

Find a Powerful eCommerce Marketing Partner


Let Brandography help you spread the word about your products through cutting-edge eCommerce web design, strategic sales channels, and expert digital marketing tactics.
Check out our website
Samirnzf
New Member
7 0 0

Moeed
Shopify Partner
5544 1502 1792

Hey @Samirnzf 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Samirnzf
New Member
7 0 0
Moeed
Shopify Partner
5544 1502 1792

This is an accepted solution.

Hey @Samirnzf 

 

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>
a.header__icon.header__icon--account.link.focus-inset.small-hide span.svg-wrapper {
    width: 30px !important;
    top: 5px !important;
    position: relative;
}
</style>

RESULT:

Moeed_0-1727296840561.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


BSSCommerce-B2B
Shopify Partner
1790 548 608

Hi @Samirnzf 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now