How can i center my header logo on mobile?

How can i center my header logo on mobile?

HELDERWRLD
Pathfinder
150 0 8

Hello

I would like to know if anyone can help to center the logo on my mobile header please?

I want the icons on the right to go more to the right so the logo can be centered. I will show an example.

Also would like to know if anyone knows how to change the language text to the icon like the example?
Website: https://diversusoficialsite.myshopify.com/
password: diversusoficial
IMG_7476.PNGIMG_BCA9D0F681AB-1.jpeg

Replies 7 (7)

comercioservice
Shopify Partner
292 37 36

@HELDERWRLD 

Hope you are well
Please go to
1) Online store
2) Themes -> Edit theme
3) Layout
4) base.css and paste this code on the end

.header__icon, .header__icon--cart .icon {
    width: 1em;
    height: 1em;
    font-size: 25px;
}

.header__icons {
    padding-right: 0;
    justify-content: center;
}

.header-wrapper .header {
    padding: 10px 17px;
}

.header__icon--cart {
    margin: 0 !important;
}

a#cart-icon-bubble svg {
    font-size: 70px;
    display: block;
    width: 1em;
    height: 1em;
}

a#cart-icon-bubble {
    width: 27px;
}

I hope it works for you, let me know, and If you'd like to discuss this more about this, don't hesitate to send me a PM/DM

Was my reply helpful? Click Like to let me know! Was your question answered? Mark it as an Accepted Solution.
Need store customizations, bug fixing or development ? Contact with us -- Support form for quick quote!
BFCM Big Deals: Big savings 25% off -on our Shopify FAQs apps!
HELDERWRLD
Pathfinder
150 0 8

Hello @comercioservice 
Thank you so much for helping me. It worked but my cart logo is too small now. Please can you help me fix it?

Also would like to know if you know how to extend my main page banner to the bottom so my image can cover the white/grey space alsoIMG_7476.PNG

HELDERWRLD
Pathfinder
150 0 8

It also changed on my desktop, i only want to change mobile, my desktop was perfect

BSSCommerce-B2B
Shopify Partner
1972 564 567

HI @HELDERWRLD ,

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1723051958663.png

 

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

@media only screen and (max-width: 768px) {
   .header {
     padding: 5px !important;
     grid-template-columns: 2fr 1fr 2fr !important;
   }
   a.header__heading-link.link.link--text.focus-inset {
     scale: 1.7 !important;
   }
}

Step 3: Save and reload page

The result will be: 

BSSCommerceB2B_1-1723052139015.png

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir! 

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

HELDERWRLD
Pathfinder
150 0 8

Hello @BSSCommerce-B2B 

Thank you so much it worked. But i would also like to put the icons on the right a little bit more together. Also the hamburger menu went too far to the left because of the code.

IMG_BBE8C9480064-1.jpeg

BSSCommerce-B2B
Shopify Partner
1972 564 567

HI my friend @HELDERWRLD , 

You can try this code, I haved fixed as your requirement to put the icons on the right a little bit more together and center your logo as image: 

BSSCommerceB2B_0-1723053454087.png

@media only screen and (max-width: 768px) {
    .header__icons {
        width: 100px !important;
    }

    .header {
        padding: 2px 2px !important;
        grid-template-columns: 2fr 2fr 2fr !important;
    }
}

 

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

 It's such my honor to help you, bro! 

 

 

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

HELDERWRLD
Pathfinder
150 0 8

It didn't work too well, the icons went too far to the right that broke and created a white line and also the menu went too far to the leftIMG_8390776504C7-1.jpeg