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

Change Forum Thread color

Discussion in 'Styling and Customization Questions' started by madmartigan, Nov 11, 2012.

  1. madmartigan

    madmartigan Active Member

    I nee helo with this i think its a guide somewhere but i dont remember where it is can somebody please link?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Add this code to change the link colors of forum titles:

    Code:
    .nodeTitle a,
    .nodeTitle a:visited
    {
    	color: red !important;
    }
    
    And forum thread titles:

    Code:
    .discussionList .discussionListItem .title a
    {
    	color: red !important;
    }
    
     
  3. madmartigan

    madmartigan Active Member

    Sorry i mean to change color for only one thread
     
  4. Shelley

    Shelley Well-Known Member

    Are you referring to the first post of a particular thread that you want to style?

    if your referring to the forum_view area you can locate the thread ids by using your code inspector (built into all browsers) and add something like the following for multi-coloured threads though this is basic you could colour the text within to match each thread etc but it gives you the idea. Adding that into your extra.css template.

    I'm not sure what your wanting to do so i'm guessing this might be it

    forum_view_colour.png


    Code:
    .forum_view #thread-44, #thread-44 .posterAvatar, #thread-44 .stats{
    background-color: red;
    }
    .forum_view #thread-43, #thread-43 .posterAvatar, #thread-43 .stats{
    background-color: green;
    }
    .forum_view #thread-42, #thread-42 .posterAvatar, #thread-42 .stats{
    background-color: yellow;
    }
    .forum_view #thread-41, #thread-41 .posterAvatar, #thread-41 .stats{
    background-color: purple;
    }
    
     
    madmartigan and Jake Bunce like this.
  5. madmartigan

    madmartigan Active Member

    I mean the text not the background its for one thread not all of them i have seen this somewhere in this forum but i dont remember where.
     
  6. Shelley

    Shelley Well-Known Member

    try the following though it only affects the title I wasn't sure whether you wanted all text within that one thread to be coloured. You'll also have to change the ID and rename it accordingly to the thread you want to style.

    Code:
    .forum_view #thread-45 .title a {
    color: red; }
     
    
     
    Jake Bunce and madmartigan like this.
  7. madmartigan

    madmartigan Active Member

    I added the text in extra.css and i added the id but nothing happend same with the one you posted before i why does it not work for me?
     
  8. Shelley

    Shelley Well-Known Member

    It worked for me, and on a custom style.

    try adding in the !important

    Code:
    .forum_view #thread-45 .title a {
    color: red !important;
    }
    
    nodetitle.png
     
    Jake Bunce likes this.
  9. madmartigan

    madmartigan Active Member

    That didnt work eather
     
  10. Shelley

    Shelley Well-Known Member

    link to style? and thread you want to change the colour in if you can?
     
    Jake Bunce likes this.
  11. madmartigan

    madmartigan Active Member

    Idont understand what you mean
     
  12. Shelley

    Shelley Well-Known Member

    Could you link me to the style, your site. Specifically the area/thread you want to change the title for?
     
    Jake Bunce likes this.
  13. madmartigan

    madmartigan Active Member

    Sure i pm the link Thank you
     
  14. Shelley

    Shelley Well-Known Member

    Issue now fixed in pm.

    It was the nodetitle change on forum_list that he wanted changed. Now resolved.
     
    Jake Bunce and madmartigan like this.

Share This Page