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

XF 1.5 ID of tab

Discussion in 'XenForo Questions and Support' started by Mr Lucky, Sep 7, 2015.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    How do I find the ID of a selected navigation tab?

    Thanks
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The have classes, rather than IDs.

    upload_2015-9-7_11-41-36.png

    Note the class name after the navTab class in each li, e.g. home, forums, xengallery, resources, etc.
     
  3. Mr Lucky

    Mr Lucky Well-Known Member

    OK thanks.

    Needs changing then, it says ID here:

    Screen Shot 2015-09-07 at 11.48.41.png
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    ID in that context refers to the name of the class applied to the tab.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    I've just said something similar in your bug report. Basically the tab system identifies tabs internally with a unique ID. We just happen to print this ID out into the list of classes applied to the tab.
     

Share This Page