Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
How to Edit Page Tile in Breadcrumbs
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 24, 2019 - 1:33 pm

We've been working to optimize SEO, and recently edited our Forums page title. I do want this longer title to appear at the top of the page, but I do not want it in the breadcrumbs which used to be formatted as:

Home > Forums > Topic Title > Post Title

They now appear as:

Home > Tripawds Three Legged Dog and Cat Forums > Topic Title > Post Title

Is there a way to edit the Breadcrumbs to just read Forums, while keeping the longer title in the Page Title?

I found the breadcrumbs in the spHead templates, but I see no way to hard-code in the desired Forums title. Nor do I see any option for assigning such in the Page and Permalink options.

So, to confirm: I want to show "Forums" in the Breadcrumbs, while keeping the Page Title at top as "Tripawds Three Legged Dog and Cat Forums".

Will this be possible? Our breadcrumbs get a little long with our recent page title edits.

spBreadcrumbs.pngImage Enlarger

forum-page.pngImage Enlarger

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 24, 2019 - 1:47 pm

Hi:

Unfortunately I don't think there's a way to do that without writing some code.  I think you would have to modify the core sp_BreadCrumbs() function.  The right way would be to modify that function to apply a filter around the page title when its referenced and commit that to the core plugin.  Then write a new function in either your theme or a separate plugin that uses that new filter to change the title as its being rendered by the the sp_BreadCrumbs() function.  This way, when the core plugin is updated, your changes aren't overwritten.

Thanks.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 24, 2019 - 3:23 pm

Simple Press said
I don't think there's a way to do that without writing some code.

I figured that might be the case, thanks for confirming.

I forget, is there a way to remove the Home link from the breadcrumbs?

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Simple Press
Admin
sp_UserOfflineSmall Offline
Apr 26, 2019 - 12:11 pm

Oops - looks like we missed your question from a few days ago.  One of the params to the sp_BreadCrumbs function is the home label so you might try changing that.  Not sure which them your site is using but the call to that function will likely be in a file called spHead.php.

Hope this helps.

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Apr 26, 2019 - 12:28 pm

Simple Press said
looks like we missed your question from a few days ago...

Got it, thanks!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590