Re: Help with Header

Solved

How can I make my theme header responsive on all devices?

Boliye
Excursionist
39 0 12

Store Link: https://c626db-2.myshopify.com/

Pass: door

 

Can anyone please help me with my shopify theme header? The problem is that the header isnt responsive on any of the devices. Like in tablet or mobile devices  this is how it should look

 

header supposed to be like.png

 

and this is how it is

 

header of theme.png

 

 

 

can anyone please help me with how to fix it? Thanks!

Accepted Solutions (2)
Made4uo-Ribe
Shopify Partner
7762 1878 2299

This is an accepted solution.

Hi @Boliye 

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:

 

@media screen and (max-width: 750px){
.header__icons {
    gap: 15px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699971365788.png
  • Note: You can increase/decrease the gap sizes. 

 

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

 

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Made4uo-Ribe
Shopify Partner
7762 1878 2299

This is an accepted solution.

Check this one. 

Same Instruction. 

 

@media only screen and (max-width:749px){
a.header__icon.header__icon--wishlist.link {
    display: none;
}
}
@media screen and (max-width: 1449px){
a.header__icon:not(:last-child) {
    margin-left: 0rem !important;
}
}
.header__icons {
    gap: 10px;
}
details-modal.header__search.search-box-hide {
    padding-left: 10px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1700059061926.png

Made4uoRibe_1-1700059077759.png

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 12 (12)

Dan-From-Ryviu
Shopify Partner
9212 1847 1880

Hi @Boliye 

Go to your Online store > Themes > Edit code > Assets, open base.css file, add this code at the bottom and save file 

@media (max-width: 767px){
.header .header-row { 
   display: flex !important; 
   justify-content: space-between;
}
}

Screenshot 2023-11-14 at 16.50.01.png

- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

PageFly-Theodor
Shopify Partner
691 86 100

Hi @Boliye ,
This is Theodore from PageFly - Shopify Page Builder App.
For solving the problem about the Help With Header, let’s try this solution:

Online Store ->Theme ->Edit code-> theme.liquid

<style>
.header .header-row{
	display: flex !important;
    justify-content: space-around !important;
}
</style>


I’ll be so happy if my suggestion can help to solve your problem. If you have any further questions, please feel free to tell me.
Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Boliye
Excursionist
39 0 12

Thanks Theodore! Can you please help in fixing the distance of the search icon and the cart icon on mobile/tablet devices? They are quite near and looking odd. Thanks!

Made4uo-Ribe
Shopify Partner
7762 1878 2299

This is an accepted solution.

Hi @Boliye 

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:

 

@media screen and (max-width: 750px){
.header__icons {
    gap: 15px;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1699971365788.png
  • Note: You can increase/decrease the gap sizes. 

 

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

 

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Boliye
Excursionist
39 0 12

Thank you bro! And can you please give an equal distance to the icons, like the search and wishlist and cart? And please remove the wishlist icon for the mobile view? Thanks a lot bro! And equal distance from the menu button too. You can see the screenshot below of an ipad pro. You can see its not equally distance from each other. Thanks! ❤️

 

ipad.png

Made4uo-Ribe
Shopify Partner
7762 1878 2299

This is an accepted solution.

Check this one. 

Same Instruction. 

 

@media only screen and (max-width:749px){
a.header__icon.header__icon--wishlist.link {
    display: none;
}
}
@media screen and (max-width: 1449px){
a.header__icon:not(:last-child) {
    margin-left: 0rem !important;
}
}
.header__icons {
    gap: 10px;
}
details-modal.header__search.search-box-hide {
    padding-left: 10px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1700059061926.png

Made4uoRibe_1-1700059077759.png

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Boliye
Excursionist
39 0 12

Thank you❤️! Really appreciate your help!

Made4uo-Ribe
Shopify Partner
7762 1878 2299

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Boliye
Excursionist
39 0 12

Bro if you don't mind would you help me with the CSS of this mobile menu? You can see in the image below that there is too much white space below the wishlist button and adding more pages pushes the login icon and the social media icons below the page, where they aren't visible anymore, Can you please help me so that the login icon and social media icons are always visible even when pages in the menu are so much that they touch the login icon. Obviously there won't be a lot of pages but just saying for reference. I just don't want the login icon and social media icons to push down. Thanks!

 

Social media icons disappearing.jpg

Made4uo-Ribe
Shopify Partner
7762 1878 2299

The reason behind this are this code. 

Made4uoRibe_0-1700088434569.png

The solution I can think, 

1st find this code in the component-menu-drawer.css in the Asset file and put some comment sign. like this. 

Made4uoRibe_1-1700088563605.png

Or paste this code in your base. css 

 

.js .menu-drawer {
    height: unset;
}

 

And Save. 

Result:

Made4uoRibe_2-1700088795759.png

 

 

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

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Boliye
Excursionist
39 0 12

Thanks, I tried the code but now the menu looks a bit off, as I don't want to reduce the size of the menu drawer. I want it to be full page. Could this be applied in a way that the menu drawer is full page while social media icons are visible too? Thank you!

Boliye
Excursionist
39 0 12

Is it possible to do the solution I mentioned above? Would love to here back from you. Thanks!