Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replace "sticky" and "locked" text with images?

  • Is there a way to replace the “sticky” and “locked” text in front of subjects with images?

    Any help would be great!

Viewing 8 replies - 1 through 8 (of 8 total)

  • pimarts
    Participant

    @pimarts

    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;

    }


    pimarts
    Participant

    @pimarts

    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 !


    pimarts
    Participant

    @pimarts

    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).

    you hao

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar