Title: bbp views
Last modified: October 25, 2019

---

# bbp views

 *  Resolved [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/)
 * (@tapiohuuhaa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/)
 * If views are added by bbp style pack, for layout reasons it would be nice to 
   have for _BODY_ element _single-forum_ class, because the layout should be the
   same as showing single forum. Then it would not need to redefine all single-forum
   class related CSS for different views.
 * is there a condition for views? A button would need it.
    -  This topic was modified 6 years, 7 months ago by [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/).

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

 *  Plugin Author [Robin W](https://wordpress.org/support/users/robin-w/)
 * (@robin-w)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/#post-12066090)
 * sorry, I have limited time to understand questions, can you re-phrase this in
   terms of a process – I don’t know what you mean by bbp views?
 * I click this and get that HTML, but need xx wrapped in a div with zz etc.
 *  Thread Starter [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/)
 * (@tapiohuuhaa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/#post-12066126)
 * BbPress shows different views with the header “_Views_” like “_Topics with no
   replies_, ” etc. Those have class for BODY “_bbp-view_“. Basically the layout
   is the same as for single forum view. But because there is no class “_single-
   forum_” all CSS for “single-forum” must redefine by using body.bbp-view…
 * It just would be nice, if the view, which needs the same layout, would have classes
   to do the layout easily.
 * I looked also condition list, which you gave me once:
 * > is_bbpress()
   >  bbp_is_single_forum() bbp_is_single_topic() bbp_is_topic_edit()
   > bbp_is_topic_merge() bbp_is_topic_split() bbp_is_single_reply() bbp_is_reply_edit()
   > bbp_is_reply_move() bbp_is_single_view() bbp_is_single_user_edit() bbp_is_single_user()
   > bbp_is_user_home() bbp_is_subscriptions() bbp_is_favorites() bbp_is_topics_created()
   > bbp_is_forum_archive() bbp_is_topic_archive() bbp_is_topic_tag() bbp_is_topic_tag_edit()
 * that list doesn’t have condition for view pages. Is there a condition for views
   like
 * > if(bbp_is_view()).
 * I would need it for adding generic New topic button (it opens a window to select
   forum):
    See [https://www.sanaristikkofoorumi.net/wordpress/forums/](https://www.sanaristikkofoorumi.net/wordpress/forums/)–
   click “_Uusi aihe_“
    -  This reply was modified 6 years, 7 months ago by [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/).
 *  Thread Starter [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/)
 * (@tapiohuuhaa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/#post-12066289)
 * It was not a big task to add some CSS for body.bbp-view. This apparently doesn’t
   relate with bbp style pack but is generic feature of bbPress. Forget this.
 * But if there would be a condition for views, I would like to know that.
 *  Thread Starter [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/)
 * (@tapiohuuhaa)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/#post-12066387)
 * Seems that condition bbp_is_single_view() relates with this issue, but still 
   missing adding some code
 * I tried to guess, what could be the name of the hook, which I could add some 
   code to top.
    This seems not work:
 * add_action( ‘bbp_template_before_single_view’ , ‘printForumList’);
 * I looked the file content-single-view.php. It doesn’t have any hook.
    I just 
   added my own hook.
 * >  do_action( ‘bbp_template_before_single_view’ );
    -  This reply was modified 6 years, 7 months ago by [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/).

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

The topic ‘bbp views’ is closed to new replies.

 * ![](https://ps.w.org/bbp-style-pack/assets/icon-256x256.jpg?rev=2706563)
 * [bbp style pack](https://wordpress.org/plugins/bbp-style-pack/)
 * [Support Threads](https://wordpress.org/support/plugin/bbp-style-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/bbp-style-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbp-style-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbp-style-pack/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [tapiohuuhaa](https://wordpress.org/support/users/tapiohuuhaa/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/bb-views/#post-12066387)
 * Status: resolved