Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Breadcrumb url link


  • tbguitars
    Member

    @tbguitars

    I’m trying to get bbpress to let me use a regular page on my site for the main forums page which I want to populate using the bbpress shortcodes. This is not hard to do, but the issue I’m stuck on is that once you go into the forums the breadcrumbs will only link back to the page with the “Forums” (or whatever you change it to in the settings)slug, and that page works like an archive page and wont let me write anything on it or use shortcodes etc.

    I’ve wasted many hours already trying to figure this out, any help would be so much appreciated.

    Thanks!

    using latest updates of wordpress and bbpress

Viewing 11 replies - 1 through 11 (of 11 total)
  • Set the forums base slug to the same as your page slug and your custom WP page with shortcodes should take precedence.


    Garindan
    Participant

    @garindan

    I have the same problem. The forums base slug is ‘forums’ as default and so is my page, but my custom WP page is not taking precedence. The bbpress one is, which is causing problems as I can’t set page options, sidebar etc etc. Any idea’s?


    Garindan
    Participant

    @garindan

    I can either get the theme/wordpress to allow my page to take precedence, or change the bbpress breadcrumbs ‘root’ to point to my page instead of the bbpress base page.

    Any idea’s how I can do that? Many thanks!


    chuckingit
    Participant

    @chuckingit

    ditto here in how to tweak the breadcrumbs – e.g., add alt tags for hover; pre-pend the breadcrumb with new link (to the primary site on multisite network); change text from Home to something else (e.g., other page name) … accordingly, thanks in advance for any pointers that can be shared … cheers – chuck scott


    SonjaFoust
    Participant

    @sonjafoust

    I’m having the same problem. Is there a fix for this yet?


    Garindan
    Participant

    @garindan

    I found out how to change the breadcrumb url, alt and text myself. You can change the code in bbp-common-template.php (/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php) on line 1889…

    // Add the breadcrumb
            $crumbs[] = '<a href="/forums/">Forums</a>';
    

    It’s just a normal link tag so you can name it and add alt tag as you wish :)

    • This reply was modified 8 months ago by  Garindan.
    • This reply was modified 8 months ago by  Garindan.

    SonjaFoust
    Participant

    @sonjafoust

    Thanks– that worked! I’m worried that it will get over-written when I update the bbpress plugin, but I guess I’ll cross that bridge when I come to it. ;) http://pintester.com/forums2


    Garindan
    Participant

    @garindan

    Yes it would do, but it’s a simple change. I just keep a changelog of things i’ve changed so they can be restored on updates :)


    nirzol
    Participant

    @nirzol

    I have the same problem. I have buddypress.
    This file doesn’t exist anymore … :/

    An other solution ?


    Garindan
    Participant

    @garindan

    Its now in ‘wp-content/plugins/bbpress/includes/common/template-tags.php’ on line 2026. bbPress of course not buddypress :)


    nirzol
    Participant

    @nirzol

    Thx Garindan :D ! I do it like that for the moment. But is not good to modify core :/

    Hope a nice solution will be find to that….

    or a solution for shortcode work with the default page forums ?

    thx

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.