Nice little mod ta, took out the formatting so there's only the gap.
Does anyone know the class to edit to change the stickies background?
kier said:Sticky threads are templates just like any others - if you want them to look different, you can just add some extra styling to .discussionListItem.sticky
Just noticed this...Yeah I tried searching for that in the templates, doesn't seem to be there.
.discussionListItem.visible.sticky {
background-color: #cc0000;
}
That will change the background colour to red so just change the css to suit.
I didn't actually test it but now I see the problem.Thanks for that Brogan, any idea how to change the replies/views box and the avatar background for it?
.discussionListItem.visible.sticky, .discussionListItem.visible.sticky .posterAvatar, .discussionListItem.visible.sticky .stats{
background: #cc0000;
}
I didn't actually test it but now I see the problem.
In that case use this instead ...
.discussionListItem.visible.sticky, .discussionListItem.visible.sticky .posterAvatar
{
background: #c8c8c8;
}
.discussionListItem.visible.sticky .stats
{
background: #c8c8c8 url('@imagePath/xenforo/gradients/category-23px-light.png') repeat-x top;
}
No worries.Thanks heaps for your help.
<xen:foreach loop="$stickyThreads" value="$thread">
<xen:include template="thread_list_item" />
</xen:foreach>
Need help finding this code in Thread_list I think it got moved in 1.0.1??
Code:<xen:foreach loop="$stickyThreads" value="$thread"> <xen:include template="thread_list_item" /> </xen:foreach>
This template modification will allow you to separate sticky threads from normal threads.
open
--> Appearance --> Templates : [thread_list]
find
Code:<xen:foreach loop="$stickyThreads" value="$thread"> <xen:include template="thread_list_item" /> </xen:foreach>
Add below
Code:<xen:if is="{$stickyThreads}"> <li class="sectionHeaders"> </li> </xen:if>
<xen:if is="{$stickyThreads}">
<hr class="stickySeparator"/>
</xen:if>
.stickySeparator {
height: 2px;
background-color: @secondaryLighter;
border: none;
padding: 0px;
margin: 0px;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.