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

XF 1.4 Discussion List

Discussion in 'Styling and Customization Questions' started by albnaldo, May 15, 2015.

  1. albnaldo

    albnaldo Member

    Hello all,

    Can you provide me the correct CSS code about the discussion list font type (bold and normal). Basically, I use the following code for node icons:

    .node .forumNodeInfo.unread .nodeIcon, .node .categoryForumNodeInfo.unread .nodeIcon {
    background: rgb(244, 244, 244);
    }

    So when any of the forums is unread, the node icon turns into that color.

    I want to do the same thing with discussion list titles. When they are unread, I want the titles to be bold and when they are read, I want the font to be normal. I have already made the text bold on Style Properties > Discussion List > Title (Unread) but it doesn't work. So I am trying to fix it using CSS code.
     
  2. Amaury

    Amaury Well-Known Member

    Can you provide a screenshot highlighting the area where you want to change the font typeface?
     
  3. albnaldo

    albnaldo Member

  4. Amaury

    Amaury Well-Known Member

    The title of the forum or thread?
     
  5. albnaldo

    albnaldo Member

    The title of the thread.
     
  6. Amaury

    Amaury Well-Known Member

    They already work like by default: bold typeface when unread and normal typeface with read.

    Check the style property, though, as you may have changed it without realizing:

    XenForo Discussion List Style Properties.png
     
  7. albnaldo

    albnaldo Member

    Yes I have already checked Style Properties. Which of the options is for the read threads? When I change First Row Text to normal from bold, the text is always normal, even if Title (Unread) is set to bold.
     
  8. Amaury

    Amaury Well-Known Member

    If you inspect the element of an unread thread on your forum, what do you see here?

    XenForo Inspect Element.png
     
  9. albnaldo

    albnaldo Member

    I only get .discussionListItem .title a { instead of .discussionListItem .unread .title a {. Even when I see a new thread without clicking it, it shows as read.
     
  10. Amaury

    Amaury Well-Known Member

    And this is a completely default style with zero customizations? If you check the Customized Components page, does it give you an error saying there's nothing customized?

    Well, it only gives the illusion because it's still unread until you view it. If you hover over the thread and look at the URL, there should be /unread at the end, so the bold typeface isn't the only indicator.
     

Share This Page