well maybe there is a problem with recognizing the menu location , like exactly where the function is in loop-forums.php
first let me see a link to your website
then im going to recreate this bbpress menu from the steps i gave you and see if i made an error copying and pasting
by the time i finish this is what you could do
put <nav id="subnav" role="navigation">
<?php
if ( has_nav_menu( 'bbmenu' ) ) { /* if menu location 'bbmenu' exists then use custom menu */
wp_nav_menu( array( 'theme_location' => 'bbmenu') );
}
?>
</nav>
below <?php do_action( 'bbp_template_before_forums_loop' ); ?>
and see if that fixes anything
Thank you @Robkk for your easy to follow steps.
I already had a child theme (made from woothemes canvas), in there I have a folder called “bbpress” in there I already had the “form-topic.php”, “loop-forums.php”, “user-details.php” and “user-profile.php”. And one level above is the bbpress.php file.
I pasted the code in the functions.php of the child theme, and added the other code in the “loops-forums.php” above <?php do_action( 'bbp_template_before_forums_loop' ); ?>
I created a new menu called bbmenu and placed a custom link into it, and I added it to the “bbpress Forum Menu location”.
Then I pasted the css into my custom css.
I don’t get any error every thing works fine, but there is no menu showing. mmmh?
Could it be a problem with canvas?
Best
Michel
I use Yoast breadcrumbs from Yoast SEO plugin could that effect the bbpress breadcrumbs
yes
if it checked in the internal links settings
if so to display the bbpress breadcrumbs uncheck it or use this in functions.php in a child theme
remove_filter( 'bbp_get_breadcrumb', '__return_false' );
Genius is overstating.. π but I’ll take thanks, always good to get a result !
1. To get a sidebar you need to be using a template that has a sidebar. https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want At the moment your page is full width.
2. Yes, but you need to be clear what you want eg manual vs. automatic registration
Step by step guide to setting up a bbPress forum – Part 1
3. I think you are using my ‘last post’ plugin – yes? If so then yes it could be modified to also show title, but I’m pretty tied up at the moment
Hey,
I successfully imported my Vanilla Forum. But what its missing are my forums. I got 7 categories in my old Vanilla forum but 0 forums after the import.
Here http://codex.bbpress.org/import-forums/vanilla/
Here it says “Forum βCategoriesβ are imported as a βForumβ”
Do I miss something here?
Thanks for your help!
Tom
hhmmmm…
Quite a lot of info, and not sure if it is affecting
The middle paragraph starting ‘My initial setup was a template file called…’ is worrying.
Basically you should not be adding stuff to your main theme, instead you should use a child theme.
Within this you will have a functions file (not a bbpress-functions file), and you would put the functions code for the custom role in the functions file.
see
Functions files and child themes – explained !
The your styles should work, and the custom role should work
None of the links work I followed all of the steps indicated here http://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#3-%C2%A0creating-a-forum-page
It is not a compatibility issue because even before I had someone add the DIVI theme to the CSS for me the links were not working and I thought that it was because it was not incorporated into my theme.
My website is thecatholicwoman.com
Direct link t the forum below.
http://www.thecatholicwoman.com/forum/
I am using WordPress 3.9.1
and BBpress 2.5.4
HELP!!!!!
Thanks so much for any help that you can provide.
okay what they did was register a menu which is a whole lot easier
so first put this in your functions.php if you have a child theme
function register_menu() {
register_nav_menu('bbmenu', __('bbpress Forum Menu'));
}
add_action('init', 'register_menu');
and now put this above <?php do_action( 'bbp_template_before_forums_loop' ); ?>
which is inside loop-forums.php inside the bbpress default templates
<nav id="subnav" role="navigation">
<?php
if ( has_nav_menu( 'bbmenu' ) ) { /* if menu location 'bbmenu' exists then use custom menu */
wp_nav_menu( array( 'theme_location' => 'bbmenu') );
}
?>
</nav>
now put this in your custom css or plugin
#subnav {
background: none;
clear: both;
display: block;
float: left;
margin: 0 auto 6px;
width: 100%;
}
#subnav ul {
font-size: 13px;
list-style: none;
margin: 0;
}
#subnav li {
list-style-type: none;
display: inline-block;
margin: 6px 4px;
}
#subnav a {
text-decoration: none;
color: #555;
background: #ddd;
padding: 2px 8px;
border: 1px solid #e4e4e4;
}
#subnav li a:hover {
background: #333;
color: #fff;
border-color: transparent;
text-shadow: none;
}
tell me if you come into any problems , so i can see if i hadd a problem copy and pasting
@dottedpixel
could you highlight what you want exactly
cause im not sure what you want , the way the forums itself display?
or the links above the forum that display each forum name? <–thats really easy
you could probably do the other thing with shortcodes
Hi Stephen,
Actually this also happens if only 1 shortcode is used on a page.
Jamie
Ok, thanks and yes we can fix that.
1. the code is missing ‘);’ by mistake, it should read
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = false;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');
The extra ‘);’ is right at the end
I’ve fixed the documentation
2. as stated in https://codex.bbpress.org/functions-files-and-child-themes-explained/
you should not be adding code to the end of a main theme’s functions, but should be creating child theme. By all means leave it there and test that it works, but then create a child theme and move it there or you risk losing the change on an update. I’ll try and make this even clearer in the documentation – it is a first version !
Hope that helps you, and please come back with any further issues ! π
I was told that I could either make the breadcrumbs go away completely or modify them. I chose to modify the appearance of the “crumbs of bread”. The following code was offered to me as a possible solution to my desire to modify my breadcrumbs . . .
Layout and functionality – Examples you can use
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = false;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'
When inserted at the end of TwentyTen Theme’s functions.php’s code as was instructed in this document . . .
Functions files and child themes – explained !
The result was this message in black against a white screen . . .
Parse error: syntax error, unexpected end of file in /home/sylviannai/public_html/journal/wp-content/themes/twentyten/functions.php on line 568
Is found at the root of my forums . . .
http://hcrd.foundation/journal/forums/
So what I’m asking is there additional code or an error in the code as that last line suggests.
Thank you for reading and please, please help. I’m losing my mind on this project and I didn’t have that many marbles to play with before I started in the first place.
Auriel
Do you know why this fixes the pagination issue when using shortcodes and partnering with a page?
No π
I’m not sure what is going on there, I’ll dig around a bit further and see what I can come up with, it should work for any combination of use cases though once you start adding two shortcodes per page it looks like bbPress may have an issue deciding which shortcode to honour the pagination for.
Hi Stephen,
Thanks for the in-depth reply π
It looks like I’ve fixed it by selecting “Forum root should show – Topics by freshness”
Do you know why this fixes the pagination issue when using shortcodes and partnering with a page?
Thanks very much for your help!
Jamie
Argh… I can’t reproduce this with either the TWenty Thirteen or Twenty Fourteen theme yet I see the issue on your site!
All of the following combinations work for me
Using a page with the [bbp-topic-index] shortcode
http://example.com/sample-page/ http://example.com/sample-page/page/2/
http://example.com/support/ http://example.com/support/page/2/
http://example.com/forums/ http://example.com/forums/page/2/
Using a page with the [bbp-forum-index] and [bbp-topic-index] shortcode
http://example.com/sample-page/ http://example.com/sample-page/page/2/
http://example.com/support/ http://example.com/support/page/2/
http://example.com/forums/ http://example.com/forums/page/2/
Not using a page (using native bbPress /forums slug with “Forum root should show – Topics by Freshness”)
http://example.com/forums/ http://example.com/forums/page/2/
Any change your using a modified Twenty Thirteen theme?
How about plugin conflicts?
Have you tried resetting/flushing your permalinks?
add_filter( 'bbp_get_single_forum_description', 'ja_return_blank' );
add_filter( 'bbp_get_single_topic_description', 'ja_return_blank' );
function ja_return_blank() {
return '';
}
i have this in my functions php in my child theme
Actually after an hour of trying to figure this out and than making this post I just figured it out. Thank you.
For those that may stumble upon this I was looking for the line
<?php // bbp_single_forum_description(); ?>
On line 24 of content-single-forum.php
Is this http://www.dexterindustries.com/forum/?reply=2027 the actual permalink from the email, with your permalink setup (which I think is ‘default’) I would have expected the url in the email to be http://www.dexterindustries.com/forum/?topic=install-sh-error/#post-2027
Your currently using the Twenty Fourteen theme so do the emailed links work correctly with this theme?
Ok, good questions, and I’ve been meaning to write something on this for a while, as I’m always saying ‘drop this in your functions file’
so new page in the codex
Functions files and child themes – explained !
Feedback welcome on what is clear/not clear !!
WP 3.9.1
Theme TwentyTen
I need to add this snippet of code to my functions file in theme/childtheme. The problem is that I haven’t found anything in Documentation telling me where theme/childtheme is. Also will this be overwritten during the next bbPress update?
This is the documentation I was given to modify and insert the following code but it assumes that I know where to put it. Help please.
Layout and functionality – Examples you can use
I’m trying to change how my breadcrumbs look
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = false;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options'
Auriel Kitsu
I’m not frustrated, though I fully understand where you are coming from π
It is as simple as (to me at least) that bbPress does NOT include ANY support for uploading attachments, this includes any role or capability to facilitate that.
That said, there is the plugin “GD bbPress attachments” that adds support to bbPress to upload attachments, how it does this and what changes it makes to either bbPress or WordPress roles and capabilities I do not know, as I stated above I have not looked closely at it (i.e. I have not looked at the source code to see how it works)
If you want attachments in bbPress that is the ONLY solution I know of. π
on registration, you will need to have auto-registration completed in
dashboard>settings>general and under membership check the anyone can register tab
you’ll then find register is added to the login boxes, and you can add ‘/wp-login.php?action=register’ to the login widget
on your breadcrumb issue see
Layout and functionality – Examples you can use
I also presume you still have all your plugins except bbPress deactivated? YES, I turn them off when trying everything.
Also what theme is it you are using? http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990?ref=Kriesi
Have you any custom code in a functions.php file running? NO