se7en1216 (@se7en1216)

Forum Replies Created

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

  • se7en1216
    Participant

    @se7en1216

    Awesome, you are a life saver Robin. So glad I could put the template file back to the original.


    se7en1216
    Participant

    @se7en1216

    Sorry for the delay, was out yesterday evening.

    I altered the template.php file and put the following at line 2266

    Original:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';

    Modified:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
    $crumbs[] = '<a href="/forums/">Forums</a>';
    }

    se7en1216
    Participant

    @se7en1216

    Hey Robin, yes, I altered the core for now until another solution was provided. Any help you could provide would be very much welcomed! 🙂


    se7en1216
    Participant

    @se7en1216

    So earlier, someone suggested doing the following:

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
    $crumbs[] = '<a href="/forum/">Forum</a>';

    Can I make a duplicate of the template.php to drop into my theme somewhere to make a similar change? This works, but I don’t like the idea of altering the main bbpress files.


    se7en1216
    Participant

    @se7en1216

    To clarify: I just need to know how I can change the Forums breadcrumb link to go to the /forums page and not /forums-root without changing it through Settings>Forums>Forum Root Slug.


    se7en1216
    Participant

    @se7en1216

    This page is currently written as just a simple WordPress page with several shortcodes as listed below:

    General Discussions
    
    [bbp-single-forum id=3926]
    
    Guild Discussions
    
    [bbp-single-forum id=3924]
    
    Group Forums
    
    [bbp-single-forum id=10169]

    When changing the Settings to have /forums as the forum root page, it changes all of the above listed shortcodes visually to look like it was just duplicated over and over from the current /forums-root page. It loses all of the current forum IDs and they all turn into a general forum-index.

    This is why I can’t just swap it in the Setting menu for the forums, and the reason I want the current Forum breadcrumb to direct to /forums and not /forums-root.

    If you would like, take a look at the way it looks now, and I’ll switch it after so you can see what it is doing.


    se7en1216
    Participant

    @se7en1216

    If I change the page as you mentioned, all shortcodes for the http://forgebreaker.net/forums/ page are overwritten, and you end up with several copies of the forum-index shortcode instead.


    se7en1216
    Participant

    @se7en1216

    Robin
    Here the the actual forum page that I want as the main page. If you hover over any of the breadcrumbs, you’ll see they read /forums-root/. I would like to replace that with /forums/

    I hide the breadcrumbs by css on this page usually, but I’m showing them now so you can see it all on one page.

    http://forgebreaker.net/forums/


    se7en1216
    Participant

    @se7en1216

    Robin, your link is very helpful, but doesn’t explain how to change the breadcrumb forum root link.

    For instance, I want to leave the breadcrumb in place, but change the link from the root page to the new forum layout page.

    Forum Root Page: /forum-root
    New Forum Layout Page: /forums

    Can this be done using the theme’s functions.php page?

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