Split theme navigation height


(Chris) #1

Greetings,

I’m trying to find out if there is a way to adjust the height of the Navigation bars (specifically the top one). I can’t seem to find anything looking at any of the CSS’s. I thought maybe the height settings under the Nav sections of the styles.css would be it, but changing them has not effect. I’m not exactly an HTML expert, so…

Any direction would be appreciated.

Thanks


(Oscar Schmid) #2

@cmsk

It’s that, what you want? Put in CSS, change values.

.header { height: 100px; }


(Chris) #3

Well that go me somewhere thank you. That adjusted what apparently is the foreground of the Nav bar… seems there is a background as well and the Link Text alignment that needs to be adjusted.

Apart from not really knowing the Tags (which are easy enough to find online), I guess I don’t understand which CSS controls what exactly and/or how they integrate with each other. Sorry for the ‘noob’ questions, but I learn fairly quickly. :slightly_smiling:


(Oscar Schmid) #4

@cmsk

No solution, sorry.
The black underground remains.
Maybe ask Yuzoolthemes directly.


(Chris) #5

Ok, well thank you for your responses. I’ve sent a link to this thread to Yuzoo… Hopefully they’ll come here and enlighten us.


(Michael Frankland) #6

Try this @cmsk

@media only screen and (min-width: 768px) {
.header {
height: 170px;
}
}

Try and change the bold

That will effect anything wider that 768px

For everything else:

.header {
height: 50px;
}

Cheers!
And thanks @Oscar for helping out :slight_smile:


(Chris) #7

@media only screen?”

Not sure where I put this code. If I put it in CSS the top Navigation bar just gets higher/thicker. I want it thinner (the 30-50px) works, but that code doesn’t fix the height of the grey background. Oscars image above illustrates the problem perfectly.


(Chris) #8

Okay, I see this code in the styles.css; however, it still only adjusts the height of the foreground bar… it’s the background bar that’s the issue.


(Oscar Schmid) #9

@yuzool
@cmsk

Works not for me, the black strip remains.
But with this code, it disappears. But from a width of 1168px, it appears below. Grrrr!

@media only screen and (min-width: 768px) { .header { height: 50px; } }

@media only screen and (min-width: 768px) {
#intro { margin-top: -20px; } }


(Oscar Schmid) #10

@yuzool
@cmsk

With this additional code, it seems to work ! :wink:

#intro #intro-background { height: 110%; }


(Chris) #11

WOW Oscar that’s PERFECT!! Exactly what I was looking for and fully safe to say I NEVER would have figured that out.

Thank you good Sir!


(Oscar Schmid) #12

… It’s my pleasure :wink:


(Michael Frankland) #13

Great work guys!!
@Oscar
@cmsk


(Chris) #14

I had to address browser window resizing on the secondary nav bar. I was able to take care of the fixed width with this:

.secondary-nav {
pointer-events: auto;
white-space: wrap;

However, I can’t seem to replicate the same with the top/main nav bar. I’ve tried the WRAP in several locations, but to no avail. Any thoughts?


(Chris) #15

Need to revisit this question. See the below images. In RW preview the top menu bar condenses to a dropdown when the screen browser window is shrunk and/or in phone view.

This doesn’t work or I should say the dropdown ‘bars’ don’t show up with published pages in web browsers nor on phones.

Need an assist on this.




(Chris) #16

The secondary nav bar auto-wraps with the code I mentioned in the previous post.

So I either need the first nav bar to wrap as well, or I need to get the drop down bars to show. I’m fine with either…


(Oscar Schmid) #17

@cmsk

I think you must add a htaccess file on the root of your server with this content, because that’s a svg file for the icon. I had the same problem.

AddType image/svg+xml svg svgz AddEncoding gzip svgz


(Oscar Schmid) #18

For this, I have no solution, unfortunately.


(Chris) #19

Thank you again, I’ll look into it!