- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have a multi language WP plugin called WPML. There is a bug with the theme (Divi) I use, but I think (HOPE) I might solve it through CSS .. instead of rebuilding a whole site in another theme ..
There is a menu item showing that I need to hide, this is the code:
<div>
<nav id="top-menu-nav">
<ul id="top-menu" class="nav">
<li class="page_item page-item-87">
<li class="page_item page-item-150">
<li class="page_item page-item-152">
<li class="page_item page-item-130">
<li class="page_item page-item-139">
<li class="cat-item cat-item-2">
<a title="”View" href="//localhost/vinetcompany/?cat=2&lang=fr”">Non classifié(e)
</nav>
It is about the last li class=”cat-item cat-item-2″
#top-menu li.cat-item.cat-item-2 {
display:none;
}
but you should be aware that this isn’t a proper fix*…the CMS shouldn’t be feeding that into the menu if you don’t want it to….but perhaps that’s another issue entirely.
*It may have knock-on effects we’re not aware off too.
Sorry I’m very convinced in a normal situation this will work .. in this case it doesn’t .. :-(
Then I don’t know what to tell you. Without a link its hard to be more specific.
EDIT—just noticed there was a small typo in my previous code…corrected.
I think I saw the missing – .. ? I’m still working local just to have more speed. Thanks a lot for your investement helping us all out!