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

XF 1.5 Thread-Specific CSS Styling

Discussion in 'Styling and Customization Questions' started by markku, Jan 5, 2016.

  1. markku

    markku Well-Known Member

    Is there a unique class for every thread? I cannot seem to find it...
  2. Brogan

    Brogan XenForo Moderator Staff Member

    No, there isn't.
  3. Lisa

    Lisa Well-Known Member

    Do you want to style the thread content or the threadlist page? You can use the thread-xx (xx being the thread ID number) to style it on the threadlisting page. For example:-
    threadid.png threadidcss.png
    Brogan likes this.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Good point; the thread id is available in the thread list view, but not the thread view (which is what I assumed you were referring to).
    Lisa likes this.
  5. gfc

    gfc Active Member

    That could be done by a template conditionals.

    Something like

    <xen:if is="{$thread.thread_id} == x">


Share This Page