I stick a locked image in front of a locked topic with this CSS code:
.status-closed .bbp-topic-title a:before {
content: url(images/closed-topic.png);
margin-right:5px;
}
Thanks! So for sticky it would be:
.status-sticky .bbp-topic-title a:before {
content: url(images/sticky-topic.png);
margin-right:5px;
}
I’m not sure if that’s the class for a sticky, but if that’s the case then yes.
You should have a closed-topic.png or sticky-topic.png in the images folder of your theme though!
And you can change the margin-right to your liking of course, that’s what worked for me.
Would the class be the same one that changes the background color of the row? If so – I have this:
.sticky .bbp-topic-title a:before {
content: url(images/star.gif);
margin-right:10px;
}
.status-closed .bbp-topic-title a:before {
content: url(images/lock.gif);
margin-right:10px;
}
and it’s not doing anything – http://endlesscreative.net/forum/forum/simbank !
Ah you’re not using the WordPress plugin (2.x) of bbPress… I have no idea how it could work in the standalone, but the procedure should be the same (only other classnames).
I figured it out but it only displays one image even if it is both stickied and closed. Also, it doesn’t show the images on the front page.
I modified the bb-includes/bb-formatting.php file and added styles.