A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
themes-topic
How to Edit Page Tile in Breadcrumbs
Avatar
jim
Here and Now

630 Posts
(Offline)
1
Apr 24, 2019 - 1:33 pm
Print

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

Attachments

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
394 Posts
(Offline)
2
Apr 24, 2019 - 1:47 pm
Print

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.

sp_Check
This post answers the topic
Avatar
jim
Here and Now

630 Posts
(Offline)
3
Apr 24, 2019 - 3:23 pm
Print

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
394 Posts
(Offline)
4
Apr 26, 2019 - 12:11 pm
Print

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

630 Posts
(Offline)
5
Apr 26, 2019 - 12:28 pm
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
David Hnát
Gary Lee
Glen Stewart
Rodney Pacis
kent black
Robert Meharg
test test
narek amprachamian
Forum Stats:
Groups: 7
Forums: 17
Topics: 10065
Posts: 79362

 

Member Stats:
Guest Posters: 607
Members: 16923
Moderators: 0
Admins: 3

Most Users Ever Online
499
Currently Online
Guest(s)
8
Currently Browsing this Page

1 Guest(s)