Tagged: breadcrumb, breadcrumbs
-
AuthorPosts
-
May 30, 2020 at 5:14 pm #1218048
Hi,
it seems that bbpress has it’s own breadcrumb system to let the user see where he is and to see the topic name of an individual topic in a forum (see screenshot), but I am not sure if that is true.
The bbpress breadcrumb system seems to have been disabled by enfold theme, probably because it has its own breadcrumbs in the header?
On my website, I don’t use the breadcrumbs in the header. The problem now is that a user looking at a topic in a forum does not see the title of that topic. But there should be a title visible for better UX.
1) Is it possible to enable the bbpress breadcrumb system for all the bbpress pages and forum related pages?
I found this, but it doesn’t seem to work:remove_filter( 'bbp_get_breadcrumb', '__return_false' );
2) Alternatively, is it possible to enable the enfold breadcrumb header for all bbpress and forum related pages?
Best regards and thank you for your support,
Peter
June 9, 2020 at 1:46 pm #1220847Hey P3T3R_0ne,
Thank you for the inquiry.
You can find the bbPress modifications inside the enfold\config-bbpress\config.php file. You might want to remove or override this filter.
add_filter('avia_breadcrumbs_trail','avia_bbpress_breadcrumb');
To override it, just use the remove_filter function in the functions.php file.
remove_filter('avia_breadcrumbs_trail','avia_bbpress_breadcrumb');
Best regards,
IsmaelJune 9, 2020 at 11:12 pm #1221005Hi Ismael,
thank you for the reply.
I have put the remove_filter function into child theme functions.php. However, there does not seem to be any change. No breadcrumbs are visible.
I also removed the add_filter function in enfold enfold\config-bbpress\config.php. Also no change and no breadcrumbs. I also emptied the cache to be sure.Probably I did something wrong or some additional step is missing. Please investigate.
Best regards, Peter
June 12, 2020 at 1:42 pm #1222055Hi,
Thank you for the update.
Try to move the snippet inside an after_setup_theme hook to remove the filter when the theme has fully initialized.
add_action('after_setup_theme', function() { remove_filter('avia_breadcrumbs_trail','avia_bbpress_breadcrumb'); }, 10);
Please note that this will only disable the theme’s breadcrumb configuration and will not add any feature to the default bbPress breadcrumb. Let us know if that helps.
Best regards,
IsmaelJune 18, 2020 at 2:20 pm #1223708Hi,
I put your suggested code into child theme functions.php, but the code does not seem to have an effect at all. Can you please investigate?
I really need the title of a forum thread to be displayed on top of a respective forum page. That would be achieved by displaying breadcrumbs. Alternatively, just the title would be fine, too.
I hope we can find a solution. Best regards,
PeterJune 25, 2020 at 11:18 am #1225450Hi,
Sorry for the delay. The breadcrumb is now displaying properly in the forum pages. We modified the snippet in the functions.php file a bit.
//show bbpress forum breadcrumbs add_action('after_setup_theme', function() { remove_filter('bbp_get_breadcrumb','avia_fetch_bb_trail',10,3); }, 9999);
Best regards,
IsmaelJuly 6, 2020 at 12:39 pm #1228263Hi Ismael,
thank you very much for helping. With this the forum will provice a much better UX. Now I will do some custom css to make it look good.
best regards, peter
July 6, 2020 at 2:54 pm #1228302Actually, there is antother issue.
Now, I need to customize the links in the breadcrumbs for appropriate user navigation.
‘Startseite’ should lead to this page ‘https://hatopia.de/community/’, not to the homepage’https://hatopia.de/’. Also ‘Startseite should be renamed to ‘Community’.Alternativly, ‘Foren’ should lead to ‘https://hatopia.de/community/’, not ‘https://hatopia.de/community-forum/’.
Do you know how to achieve this result?
July 6, 2020 at 2:56 pm #1228303Also,
I think enfold has disabled the display of titles above forum threads as well. How can I reactivate the title?
Thank you for helping out and best regards,
PeterJuly 10, 2020 at 9:33 am #1229351Hi,
Thank you for the update.
Looks like there is no filter available to adjust the links in the default bbPress filter, so you’ll have to modify the plugin file directly or use the filter that one of the users provided in this thread.
// https://bbpress.org/forums/topic/change-breadcrumb-url-link/page/2/
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
IsmaelJuly 10, 2020 at 4:50 pm #1229451Hi Ismael,
I will go through the thread you linked here. Thank you for helping out.
Best regards, Peter
July 13, 2020 at 5:12 am #1229826 -
AuthorPosts
- You must be logged in to reply to this topic.