I thought a simple code like this would be enough but it doesn’t
You’re making the first-level inner ul inline, but that doesn’t change whatever you’ve got its li’s set to (if they are display: block then your menu won’t look inline, and if they’re floated then it doesn’t matter what the menu itself is set to).
Does this help? You want xoxo to be inline (in a row) and the submenus to be blocks?
Why can’t you change the Wordpress code? I thought people could (I dunno, I stay as FAR away from templates as possible… the code above is a good reason why).
xoxo seems to have only one row so it should be the following ul to be inline (ie
But you didn’t state (or I missed it? I tend to do that) what the li’s are set to. You can set your first-inner ul to display inline but since inlines can’t contain blocks, if the li’s (such as <li id=“menu-item-24” class=“menu-item menu-item-type-post_type”>) are non-floated blocks, then it’ll visually look no different. You’ll have to make sure the ul you want to look “inline” has either inline or floated li’s as direct children.
I’m having trouble visualising this menu. Do you have a visual representation?
@Dijup, thanks, you’re right about the structure but I tested it and doesn’t work
@Stomme poes
xoxo seems to have only one row so it should be the following ul to be inline (ie
<ul id="menu-secondaire" class="menu">
)
If I remove the sub menu entries, .menu-item is enough to display it in line but when I add the sub menu, then everything is inline in spite of the .sub-menu display: block code
I don’t find the code in wordpress to edit it so I’d like to keep the hacks in the css file if possible