Skip to:
Content
Pages
Categories
Search
Top
Bottom

Close topic label

  • @enkoes

    Participant

    Hi, can we add a label something like “[Closed]” BESIDE the topic title in the topic list if the topic is closed for discussion?

    Currently those closed topics will be highlighted pink by default by bbp Style Pack plugin (Topic/Reply Display > item 4). I wonder how can we disable this highlight effect using CSS. “[Closed]” label just looks nice & neat for me.

    Regards.

Viewing 6 replies - 26 through 31 (of 31 total)
  • @enkoes

    Participant

    Two forums:

    “Medical and Health Takaful”

    and

    “Endowment/Saving Plan”

    @robin-w

    Moderator

    thank you

    put this in the custom css part of the style pack plugin

    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
    	background-color: transparent;
    }

    @enkoes

    Participant

    It works.
    Thanks for helping me despite your tight schedule!

    @robin-w

    Moderator

    you’re welcome

    @uksentinel

    Participant

    Hi Robin

    Did you manage to add “[Closed]” BESIDE the topic title in the topic list, as per the discussion above.

    I had a look through the BBP Style Pack changelog and could not see a reference.

    Handy option for Forum users to visually see that Topic is closed without changing colour of underlying background colour and something I am looking for currently 👍

    @uksentinel

    Participant

    This is what I ended up using and seems to work well. If others are looking for CSS code that adds a “CLOSED” visual reference to the beginning of TOPICS Titles that have been closed, then try this and tweak to suit if needed.

    /* Add a “Closed” label to closed topics in bbPress */
    .status-closed .bsp-preview::before {
    content: “Closed”;
    background-color: #ff0000; /* Red background for visibility */
    color: #ffffff; /* White text color */
    padding: 2px 6px;
    margin-right: 10px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
    }

    Example;
    https://uktechhub.com/wp/wp-content/uploads/2025/03/UKTH-Closed-Topic-icon.png

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