1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Responsive Navigation does not follow css

Discussion in 'Resolved Bug Reports' started by Dynamic, Apr 10, 2014.

  1. Dynamic

    Dynamic Well-Known Member


    So, if I hide a navTab via CSS it hides the navLink in the navigation. An example would be

    .navTabs .navTab.resources.PopupClosed
    display: none !important;

    This works great. The problem is when the hiddenNavigation pops up in narrow screens, it does not follow the CSS rule. I have looked and there is no way that I can think of hiding certain tabs I do not want shown.

    Looking further and speaking to Jeremy, none of the links have classes to add css code for.

    Is the missing classes a bug?
  2. Mike

    Mike XenForo Developer Staff Member

    Not really. If you don't want a navigation entry to be shown, I'd have to recommend not outputting it in the first place (there are generally permission checks in place anyway). The code expects all navigation entries to be valid and displayable.
  3. Dynamic

    Dynamic Well-Known Member

    So for addons that do not have an option to display the tab or not, how does one get around this? If the links had classes we could easily do it via CSS.
  4. Russ

    Russ Well-Known Member

    Enable debug, find the nav listener and disable it

    RM for instance:

    Dynamic likes this.
  5. Dynamic

    Dynamic Well-Known Member

    Thanks Russ!
  6. Dynamic

    Dynamic Well-Known Member

    Okay @Russ,

    Now I get an error at the top of the page saying

    CSS Error: public.css: Invalid Property Access: group: secondaryMain

    I have turned off debug mode and turned all listeners back to normal.

  7. Russ

    Russ Well-Known Member

    Actually your problem it shows still exists however debug just displays the error. Disabling nav tabs wouldn't do that, that seems more like a property being called in your templates thats no longer there.
  8. Dynamic

    Dynamic Well-Known Member

    Oh okay. I disabled debug but it still shows. It also created a problem with my resource manager and the bdPaygates addon. Is there a quick fix to this now?

  9. Dynamic

    Dynamic Well-Known Member

    Actually never mind I got it :)

    Thanks a lot for the help Russ. I appreciate it dude.
    Russ likes this.

Share This Page