How can I hide a specific header in mobile view?

Solved

How can I hide a specific header in mobile view?

korrynf
Excursionist
18 0 4

Hello I am trying to hide a header in mobile view. I have multiple headers that show based on condition. I need to hide two of my existing headers on mobile so that only one main header shows on mobile.

As you can see, on mobile I have two hamburger menus. I want the second one to be hidden when in mobile. 

On desktop the two menus are fine. How would I remove this second hamburger menu?

Screenshot 2024-03-15 at 10.14.46 PM.png

Screenshot 2024-03-15 at 10.15.08 PM.png

Accepted Solution (1)

PageFly-Henry
Shopify Partner
1184 335 297

This is an accepted solution.

Hi  @korrynf 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save


@media (max-width:  767px){

header#shopify-section-header2 {

    display: none;

}}

 

Hope that my solution works for you.

Best regards,

Henry | PageFl

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.

View solution in original post

Replies 8 (8)

Hardik29418
Shopify Partner
2913 418 1083

Hello,

Welcome to the Shopify Community.
I read your problem and it seems that I need to analyze your website to provide the solution here.
Would you please share your website URL and if your website is password protected then also provide the password.

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email
korrynf
Excursionist
18 0 4

Hi thank you, the URL is thedenimlab.com ..no password

Hardik29418
Shopify Partner
2913 418 1083

Please go to
1) Online store
2) Themes -> Edit theme
3) Layout
4) theme.liquid and paste this code before </head>

<style>
@media only screen and (max-width: 999px) {
.shopify-section-header2 {
display: none;
}
}
</style>


Like and accept it as a solution if my solution works.

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email

devcoders
Shopify Partner
1126 134 316

Hello @korrynf 

 

Admin, go to online store > themes > actions > edit code.
Asset > theme.css and paste this at the bottom of the file.

 

@media screen and (max-width: 999px){
header#shopify-section-header2 {
display: none;
}
}
Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

PageFly-Henry
Shopify Partner
1184 335 297

This is an accepted solution.

Hi  @korrynf 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save


@media (max-width:  767px){

header#shopify-section-header2 {

    display: none;

}}

 

Hope that my solution works for you.

Best regards,

Henry | PageFl

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.

korrynf
Excursionist
18 0 4

This worked thank you!

PageFly-Henry
Shopify Partner
1184 335 297

You are welcome @korrynf 😊

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.

themiaraecoll
Visitor
2 0 0

Hiya,

 

I am trying to do something similar I have attached some photos to help explain. 

 

If possible i would like the make the pink border on the mobile view be only around the circled section of writing as it covers up the photo.

 

If not then am i able to remove that whole section but only from the mobile view. not from the desktop as it looks fine on there. 

 

thank you 

 

IMG_5039.jpgIMG_5250.jpgScreenshot 2025-03-14 at 10.13.35.png