Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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

    #1220847

    Hey 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,
    Ismael

    #1221005

    Hi 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

    #1222055

    Hi,

    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,
    Ismael

    #1223708

    Hi,

    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,
    Peter

    #1225450

    Hi,

    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,
    Ismael

    #1228263

    Hi 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

    #1228302

    Actually, 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?

    #1228303

    Also,

    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,
    Peter

    #1229351

    Hi,

    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,
    Ismael

    #1229451

    Hi Ismael,

    I will go through the thread you linked here. Thank you for helping out.

    Best regards, Peter

    #1229826

    Hi,

    You’re welcome! Please note that the filter called “change_root” provided by another user in that thread overrides the default breadcrumb function. You can add your own custom modifications inside that filter.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.