CMS Development

SOxley
Participant

Activate mobile menu

SOLVE

Hi,

I'm having some trouble with me header menu. I've got two identicial "primary menu filed" sections but no mobile navigation. I'm using one the free Hubspot templates (Martech) but had to copy it to change the font size of my menu font. 

 

I'd like to keep a top bar menu for desktop but don't want to lose a mobile menu. Support advised me to change the code highlighted below from "display: none" to "display: block". 

 

Will this activate my mobile menu? And does it solve the two primary menu fileds? 

 

mobile navigation turned off -- need it to be onmobile navigation turned off -- need it to be on

 

I'm happy to create a navigation just for mobile, just want to check I won't have two menus on my desktop. I'm not a developer but trying my best to make sure my website has a navigation for desktop and mobile use. 

 

Thanks in advance for your help.

0 Upvotes
1 Accepted solution
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

Got it @SOxley, looks like you're heading in the right direction. You'll want to set the top bar to hidden when the mobile nav shows up, currently .header__top-bar is set to display: block;

.header__top-bar {

display:none;

}






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

12 Replies 12
SOxley
Participant

Activate mobile menu

SOLVE

Thanks @jonchim . That's fixed the final error I had. Like you could mind read where I was going wrong. Thanks very much for your support. That's helped me out a lot. 

jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

No problem @SOxley ! let me know if you need help with anything else 🙂 






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

no worries @SOxley If you navigate to marketing > website pages, have you created any website pages? If not would you be able to create just a test page and then send me that link?






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes
SOxley
Participant

Activate mobile menu

SOLVE
0 Upvotes
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

@SOxley ahh i see what's happening now, it looks like your top bar navigation and main navigation are being used in both placed. Looks like the main nav is white which made the mobile menu white as well. Changing the link color and menu color to a darker color should make it function as intened. But maybe there is a reason the main navigation isn't being used? Screen Shot 2021-05-10 at 12.38.40 PM.pngScreen Shot 2021-05-10 at 12.39.14 PM.png

 






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
SOxley
Participant

Activate mobile menu

SOLVE

Thanks @jonchim. Yeah, it's a bit complicated really. The top bar is meant to be the main and only nav. Every time I try to fix it a new nav automatically sets itself up. I'm worried about ending up with 5 navs soon. Im trying to work out how to set the code so that I only have one navigation that works for desktop and mobile. I don't understand why there are multiple navs in the first place.  I did mofidy the top nav to let me have a bigger font. This is where the trouble started.  

I think there's an override action somewhere that won't accept the top bar as the main and only nav. I'm trying to work out how to delete the two bottom navs and to only have the top nav as the main nav. Who'd know changing a font size would have so many repercussions. Haha 

0 Upvotes
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

Got it @SOxley, looks like you're heading in the right direction. You'll want to set the top bar to hidden when the mobile nav shows up, currently .header__top-bar is set to display: block;

.header__top-bar {

display:none;

}






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

Interesting, the mobile menu should be visible by default. @SOxley would you be able to provide a dev link so I can take a closer look?






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
SOxley
Participant

Activate mobile menu

SOLVE

Thanks @jonchim . I was a bit surprised myself that the default wasn't there. Here's the dev link for a closer look. 

 

0 Upvotes
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Activate mobile menu

SOLVE

Sorry @SOxley , would you happen to have a link that's not the hubspot design manager, a link to hs-sites site page?






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes
SOxley
Participant

Activate mobile menu

SOLVE

Sorry @jonchim. I don't really know what you mean. The website isn't live yet, so I can't provide a live url (if that's what you meant). All I have is the code from the design manager or some screenshots. Not sure if these will be helpful? 

 

 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Activate mobile menu

SOLVE

@jonchim , any advice for @SOxley 

0 Upvotes