Support How to Add color to a Specific thread title

XenForo

Administrative
Hello,

Anyone help me please, how to add color into specific thread title, please help.

Thanks
Hello
  • Important topics ::: extra.less
Code:
////////XnForo.ir//////////
.structItemContainer-group.structItemContainer-group--sticky
{background:@xf-paletteColor5;}
.structItemContainer-group.structItemContainer-group--sticky a
{color:@xf-contentBg}
////////XnForo.ir//////////

  • Locked topics ::: ::: extra.less
Code:
.structItem.is-locked * { background-color: #red ;}

Topics answered by the user
  • Search : thread_list_macros
  • Find :
PHP:
<div class="structItem structItem--thread{{ $thread.prefix_id ? ' is-prefix' . $thread.prefix_id : '' }}{{ $thread.isIgnored() ? ' is-ignored' : '' }}{{ ($thread.isUnread() AND !$forceRead) ? ' is-unread' : '' }}{{ $thread.discussion_state == 'moderated' ? ' is-moderated' : '' }}{{ $thread.discussion_state == 'deleted' ? ' is-deleted' : '' }} js-inlineModContainer js-threadListItem-{$thread.thread_id}" data-author="{{ $thread.User.username ?: $thread.username }}">
  • Replace :
PHP:
<div class="structItem structItem--thread{{ $thread.prefix_id ? ' is-prefix' . $thread.prefix_id : '' }}{{ $thread.isIgnored() ? ' is-ignored' : '' }}{{ ($thread.isUnread() AND !$forceRead) ? ' is-unread' : '' }}{{ $thread.discussion_state == 'moderated' ? ' is-moderated' : '' }}{{ $thread.discussion_state == 'deleted' ? ' is-deleted' : '' }}{{ $thread.getUserPostCount() ? ' memberParticipatedThread' : '' }} js-inlineModContainer js-threadListItem-{$thread.thread_id}" data-author="{{ $thread.User.username ?: $thread.username }}">
  • extra.less :
Code:
.memberParticipatedThread {
    background-color: #C4E599 !important;
}
 

wubaba

Registered
But bro i don't need
  • Important topics ::: extra.less
  • Locked topics ::: ::: extra.less
i just want to change a color of specific thread title, can you please show some result, i would love it.

Thanks
 

XenForo

Administrative
But bro i don't need
  • Important topics ::: extra.less
  • Locked topics ::: ::: extra.less
i just want to change a color of specific thread title, can you please show some result, i would love it.

Thanks
1 .
Try this mate? Replace ID with thread ID

Code:
.js-threadListItem-ID .structItem-title a
{
color: green;
}
Code:
.js-threadListItem-ID .structItem-title a
{
color: white;
font-family: Comic Sans MS;
font-weight: bold;
font-size: 15;
background-color: #1ab7ea;
background-image: ;
background-repeat: ;
text-transform: uppercase;
}

2 .
Rich (BB code):
.structItem-title a { color: lime!important;}
 

wubaba

Registered
Try this mate? Replace ID with thread ID
Code:
.js-threadListItem-ID .structItem-title a
{
color: green;
}

Code:
.js-threadListItem-ID .structItem-title a
{
color: white;
font-family: Comic Sans MS;
font-weight: bold;
font-size: 15;
background-color: #1ab7ea;
background-image: ;
background-repeat: ;
text-transform: uppercase;
}

This is also the case
AND
Rich (BB code):
.structItem-title a { color: lime!important;}

Bro here you given me 3 codes. do i have to copy all 3 codes in " extra.less "or only 1 from them ?

Code:
.js-threadListItem-ID .structItem-title a
{
color: green;
}

Code:
.js-threadListItem-ID .structItem-title a
{
color: white;
font-family: Comic Sans MS;
font-weight: bold;
font-size: 15;
background-color: #1ab7ea;
background-image: ;
background-repeat: ;
text-transform: uppercase;
}

This is also the case
AND
Rich (BB code):
.structItem-title a { color: lime!important;}
 
  • Tags
    add color to a specific thread title how to add color to a specific thread title
  • Back
    Top Bottom