I'm trying to customize the menus in my PHP theme, however for some reason they always come with an extra DIV element wrapped around them:

<div class="menu">
...
</div>

Can anyone tell me what function is inserting that, and how ro remove it?

Comments

Steven’s picture

Can't be bothered to look up where it's coming from, but I don't see why you'd need to remove it. A div is a neutral element. If you don't want it to be a block level element you can always set it to display: inline. Then it won't have any effect at all.

--
If you have a problem, please search before posting a question.

Rowan Lewis’s picture

I want to remove it because its unneeded and messes up my formatting...

Ryanbach’s picture

You could try... Adding this to your css class named menu --> without quotes "overflow:hidden;"

That would basicly make it not show, I think.

Rowan Lewis’s picture

Yes it would...

But it would still be in the source and thats where I want to remove it. It's no good writing a quality theme when you've got junk code all through it.