Skip to:
Content
Pages
Categories
Search
Top
Bottom

where is status-closed css set?


  • mtissington
    Participant

    @mtissington

    In the main forum/topic view the css is updated with status-closed.

    However the Forum and Topic widgets do not update the status.
    I would like to change this.

    Where does the existing code set status-closed for both Forums and Topics.

    Hopefully you can see what I’m wanting to show here

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

  • Robin W
    Moderator

    @robin-w

    if you’ve cloned the forum widget, you can set a class – the test is

    if ( bbp_is_forum_closed(forum_id)) ...

    and

    if ( bbp_is_topic_closed (topic_id)) ...


    mtissington
    Participant

    @mtissington

    Thanks – however isn’t there some code which reads the status value and appends it – so something like

    $class = “status-” . $status = get_status (id) ??


    Robin W
    Moderator

    @robin-w

    you could do that with javascript, but nothing already written in the plugin that I know of

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