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.
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/ – click “Uusi aihe“
-
This reply was modified 6 years, 7 months ago by
tapiohuuhaa.
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.
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.