Forum Replies Created
-
In reply to: Change Breadcrumb url link
Awesome, you are a life saver Robin. So glad I could put the template file back to the original.
In reply to: Change Breadcrumb url linkSorry 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>'; }
In reply to: Change Breadcrumb url linkHey Robin, yes, I altered the core for now until another solution was provided. Any help you could provide would be very much welcomed! 🙂
In reply to: Change Breadcrumb url linkSo 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.
In reply to: Change Breadcrumb url linkTo 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.
In reply to: Change Breadcrumb url linkThis 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.
In reply to: Change Breadcrumb url linkIf 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.
In reply to: Change Breadcrumb url linkRobin
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.
In reply to: Change Breadcrumb url linkRobin, 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: /forumsCan this be done using the theme’s functions.php page?