my friend ? In this postNot working for me, please send me just proper 1 code and where to put with screenshot if possible
![]()
I need to change color of each single thread title, i don't want to change whole list color
HelloHello,
Anyone help me please, how to add color into specific thread title, please help.
Thanks
////////XnForo.ir//////////
.structItemContainer-group.structItemContainer-group--sticky
{background:@xf-paletteColor5;}
.structItemContainer-group.structItemContainer-group--sticky a
{color:@xf-contentBg}
////////XnForo.ir//////////
.structItem.is-locked * { background-color: #red ;}
<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 }}">
<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 }}">
.memberParticipatedThread {
background-color: #C4E599 !important;
}
1 .But bro i don't need
i just want to change a color of specific thread title, can you please show some result, i would love it.
- Important topics ::: extra.less
- Locked topics ::: ::: extra.less
Thanks
.js-threadListItem-ID .structItem-title a
{
color: green;
}
.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;
}
.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 ?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;}
![]()