I've got a Navigation bar question that I've so far not been able to get an answer to.
I'm using the MarTech Hubspot template and would like to increase the font size of my navigation bar. I can't find a suitable option in the Global content editor or in the Themes editor. Hubspot support are on the case but 3 days in and no reply.
I'm not a developer but can get access to a developer if changing the code is the only way.
Has anyone had a similar problem?
Is it best practice to change the font size of my navigation? (It looks small and hard to read to me, but maybe it's a standard size?)
Any advice or a link to an article with more info on this would be great.
I've read a few older posts - you've done everything right except for one small thing. You've modified the _default-modules.css. Almost everything what's inside the "underscoreFILENAME.css" files will be overwritten by the "theme-override.css". So you'll have two options to edit this file:
place the code I've posted in the first post at the very bottom of it (You'll most likely will lose the ability to change the navigation font-size in the theme-settings)
go the "developer route" by modifying the fields.json
as promissed - here's a "guide" how to modify the fields.json file:
Always create backups of files you're modifying. HubSpot got a good revision function but "better safe than sorry". If you don't use the CLI function simply create a new file in any Coding program(free ones: atom.io, visual studio code, sublime, brackets(soon will be implemented in Visual Studio Code) ) or the editor(on Windows), copy/paste everything from HubSpots Design-Manager into the file, save it.
To implement a new "function" into martech theme you'll need to make it editable by cloning it and modify following files:
fields.json
So lets start: To have it all organized I recommend to put the "navigation font-size" into the navigation "folder". To do this search for this part in the fields.json file(starts on line 2177):
I've looked a bit further into this and the font size can be changed with the solutions suggested by @Anton but this leads me to a new and bigger problem.
My whole website is built using one theme, Martech that isn't adjustable, which I didn't realise or understand when I started building my website. (Might be a good FYI for other none developers who join). I know need to change all my changes to a new theme without losing any of my copy, images, spacing, settings etc.
Is there a way to do this without having to start from scratch?
Personally I'm a big fan of creating complete custom themes but this can take a lot of time(and money). I think the easiest solution would be to modify the fields.json file of martech(finally found it; thanks for pointing out that it's a free theme 🙂). I will write a "guide" later today, ok?
I think I've learnt that custom themes are a good plan, just not something I originally knew I needed. Hence the pickle 🤣
If modifying the fields.json file saves copy and pasting all my pages to the modified theme, that would be a huge help. And a guide would be very kind of you.
I've read a few older posts - you've done everything right except for one small thing. You've modified the _default-modules.css. Almost everything what's inside the "underscoreFILENAME.css" files will be overwritten by the "theme-override.css". So you'll have two options to edit this file:
place the code I've posted in the first post at the very bottom of it (You'll most likely will lose the ability to change the navigation font-size in the theme-settings)
go the "developer route" by modifying the fields.json
as promissed - here's a "guide" how to modify the fields.json file:
Always create backups of files you're modifying. HubSpot got a good revision function but "better safe than sorry". If you don't use the CLI function simply create a new file in any Coding program(free ones: atom.io, visual studio code, sublime, brackets(soon will be implemented in Visual Studio Code) ) or the editor(on Windows), copy/paste everything from HubSpots Design-Manager into the file, save it.
To implement a new "function" into martech theme you'll need to make it editable by cloning it and modify following files:
fields.json
So lets start: To have it all organized I recommend to put the "navigation font-size" into the navigation "folder". To do this search for this part in the fields.json file(starts on line 2177):
Thanks so much for this very useful guide. The step by step overview os going to be a life saver. I appreciate you putting in the time to put this together.
I'm going to give this a try and will report back asap.
I would test in the content staging. This will basically clone the page and put the copy in a safe place where you can fiddle away with a new features.
PS -- annoyed that @Anton 's solution worked and the one I suggested to support didn't
Pretty sure Anton cheated 😛
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth. Learn More
I may be using the themes incorrectly. I've been able to do a lot of work using the Martech theme. (One of Hubspot's six free themes)
I had been making copies of it to make changes but with little success until a member of support told me how to very easily make changes within the Martech theme.
All of my website pages are connected to this modified Martech theme. And I have far too many theme copies that I can't remove so if there's a way to change the css file of my default and modified Martech theme that would be great.
Thanks for your replies and for trying to help. Still having some trouble unfortunately. Support has also got back to me with advice on the changing the header font size in the css file. It doesn't seem to be having an impact. I've taken some screenshots to show what I've done as I'm hoping I'm simply missing something in the code.
Support suggested I change the font-size in the _header.css file. It was originally 12px so I tried changing it to 22px to see what happens.
My header menu font size appear to remain the same size as before:
I went to the "_default.modules.css" (The only default file I spotted but not really sure what I'm looking at or for...) and found a ".hs-menu-wrapper ul", couldn't find "li" though. I added the code where I thought it was meant to go, but still no luck.
I also tried changing the coe to be {# replace font size with desired font size 20px} to see if I was simply not using the code properly but also hasn't worked.
Any advice would be greatly appreciated. Thanks very much
So the font size of the navigation is adjusted with the body font size in the typography settings. That's probably not ideal if you wanted the navigation size to be different. But I assume it was coded that way to keep it nicely scaled and consistent.
If you wanted to adjust the font size manually you can add this to your custom css and change the font-size to your liking.
Was just snooping around the theme and it appears that that was not an option set for the theme editor so you will need to adjust in the css. I reached out to the support rep to tell them where to edit and they should reach out to you shortly with a link to the line that needs to be edited.
Now for the second question. That is a very subjective one. If you would like to some thoughts on it, you will need to post a link to an example page so the Community can see
@jonchim and @Anton are the people who would be able to get you some solid opinions!
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth. Learn More