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

XF 2.0 Adding a sticky divider

Ranger375

Well-known member
#1
Does anyone have a good way to put a divider between the posts and stickies or at least just change the color of the sticked posts?
 

Chris D

XenForo developer
Staff member
#2
You can do either with changes in extra.less, e.g.
Less:
.structItemContainer-group.structItemContainer-group--sticky
{
    border-bottom: 2px solid red;
}
Thick red border between the sticky group and the non sticky group.
Less:
.structItemContainer-group.structItemContainer-group--sticky
{
    .structItem--thread
    {
        background-color: lightblue;
    }
}
Different background colour for sticky threads.
 

Ranger375

Well-known member
#3
You can do either with changes in extra.less, e.g.
Less:
.structItemContainer-group.structItemContainer-group--sticky
{
    border-bottom: 2px solid red;
}
Thick red border between the sticky group and the non sticky group.
Less:
.structItemContainer-group.structItemContainer-group--sticky
{
    .structItem--thread
    {
        background-color: lightblue;
    }
}
Different background colour for sticky threads.
You are the man. Thanks!