Site logo

Archived topic

"Navigation Logo Placement" Sticky PNG logo grows

25 replies · Started by Terence on March 18, 2019

Viewing posts 1–15 of 26

If I place the exact same 250px wide PNG as I have used for the site logo, in the "Navigation Logo" slot and then set it to "Sticky", the resulting sticky menu shows a logo 288px wide.

And that looks butt ugly to a pixel perfect OCD like me.

What am I doing wrong?

And I have just discovered its exactly the same problem if you are using an Element and setting it up as the Site Header.

Thanks Leo. I have already got 1.8a installed and I used the Navigation as Header option you suggested. Unfortunately it gives exactly the same result, as you can see here --> Standard heading and the Sticky Header

Just checked the page and don't see a logo uploaded.

The header is also still there and that shouldn't be the case if you are using the new option.

I think I found the problem.

There's a single checkbox "Use Navigation as Header" at the bottom of Customizing > Layout > Header, which enables the magic to happen.

With that ticked, everything is working as its supposed to be, as far as I can tell.

Which as it turns out is a different way of doing it, but it doesn't answer my original question which was why does the png image grow 36 pixels?

So that means the logo width is dictated by the "menu item height" set on "primary navigation.

OK, I get that but I don't like it because it means I can't adjust the menu height and not affect the logo width.

I guess I will just have to develop some CSS to stop that from happening and limit the logo appearance globally in that menu to 250px.

Is that the correct thing to do?

Hi there,

yes you would need a little CSS to resize the image or increase the padding around it.
Let us know if you need assistance with that.

Would you please? That would be helpful.

Can you switch to Use navigation as header method first?

You know what, this is not right. Even when I "Use Navigation as Header" it still extends the PNG by some 36px. I am going to try a test with other file formats and find out what preserves the native image size, and what doesn't.

This archived topic is closed to new replies.