Empty menu items create p tags?
-
Hey there,
while successfully using the menu, i found a small issue with menu entries, that do not have children.
They seem to create a html <p></p> tag combination, that also has some margin. Fun part about this is, the preview in the iks menu section doesn’t show that. So it might be, that it’s my current wp installation causing that behaviour.Here are some Information about the system i am using:
Menu source taxonomy – > categories
WordPress 6.2.2
PHP 8.1.2
Plugin Version 1.6.0
Ubuntu 22.04.2 LTS
And using Firefox 115.0.1esr (64-Bit) as browserSome HTML:
<div class="iksm-terms-tree__inner"> <div class="iksm-term iksm-term--id-1 iksm-term--parent" data-id="1"> <div class="iksm-term__inner" tabindex="0"> <a class="iksm-term__link" target="_self" tabindex="-1"><br> <span class="iksm-term__text">Allgemein</span><br> </a> </div> <p></p> ...
with that last p tags and the margin, the menus got a bit seperated from other menu parts, which looks a bit awkward.
As for now i am trying to write come css to reduce all margins to 0, but i just wanted to check, if anybody else got this issues.with kind regards
- The topic ‘Empty menu items create p tags?’ is closed to new replies.