Subscribe to forum link
-
Hi,
Where would I be able to edit the subscribe/unsubscribe to forum link/location?
As there is no spacing between the link and the forum name.

-
I agree, the location is so hidden, I would have not found it without you.
Can bbPress make this link more prominent and better located?Thanks
I try to adderss this by CSS for now, but css class is same everywhere, so need to think clever ,-)
I simply added this to my bbpress.css file (in my theme folder)
#subscription-toggle {float:right;}
Funny, exactly what I ended up doing. Okay, I afterwards garnished the visibility a bit more:
#subscription-toggle a { font-weight: bold; padding: 0 2px 0 2px; border: 1px solid navy; background-color: white; }Two mind, good idea – thanks for replying 😉
You also go about it this way by adding it to your themes
functions.phpfile or yourbbpress-functions.phpfile in your theme directory.To change from
Home › Forums › My ForumSubscribe
To change toHome › Forums › My Forum (Subscribe)function ntwb_forum_subscription_link( $args ) { $args['before'] = ' ('; $args['after'] = ')'; return $args; } add_filter( 'bbp_before_get_forum_subscribe_link_parse_args', 'ntwb_forum_subscription_link' );If you don’t want to add it manually grab the entire file here and add it as a standalone plugin to your WordPress install.
Thanks alot guys, all sorted now.
ok, here my latest uüdates to custom CSS field of my theme:
#bbpress-forums > #subscription-toggle{ float:right; } #bbpress-forums div.bbp-reply-content a.subscription-toggle, #subscription-toggle a{ font-weight:bold; padding: 0 2px 0 2px; border: 1px solid navy; background-color: white; } #bbpress-forums div.bbp-reply-content .is-subscribed a.subscription-toggle, #subscription-toggle .is-subscribed a.subscription-toggle{ background-color: #FFE000; }Stephen – I don’t know if this has changed since your post, but this isn’t great on bbpress 2.5.6, since it also affects the text for the topic subscribe/unsubscribe. Instead of seeing
Favorite | Subscribe, you getFavorite (Subscribe). To fix this, you need to post-filter the args, and checkbefore:function sa_after_get_forum_subscribe_link_parse_args($args) { if(empty($args['before'])) { $args['before'] = ' ('; $args['after'] = ')'; } return $args; } add_filter( 'bbp_after_get_forum_subscribe_link_parse_args', 'sa_after_get_forum_subscribe_link_parse_args');
- You must be logged in to reply to this topic.