Support Forum

Removing/Changing 'Home' Breadcrumb

SD Stan Dahl
Stan Dahl
Member

Is it possible to remove the ‘Home’ breadcrumb or change the link?

Our site has a ‘Coming Soon’ message on the main URL and there’s no link to the forum on that home page.

I’d rather not have that Home button or link it to the Forum home page.

Can that be done?

Thanks.

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

see:  http://codex.simple-press.com/codex/api/template-functions-and-the-api/display-template-functions/common-view/sp_breadcrumbs/

third example shows how to remove home link…

SD Stan Dahl
Stan Dahl
Member

Thanks.

Would I add that code to the file located: simple-press/forum/content/sp-common-view-functions.php ?

I’m not a code guy and it’s not real clear.

 

Thanks

MP Mr Papa
Mr Papa
Member

No you have to make the changes in your sp theme you are using…  as always, we recommend you make your theme vice editing one of ours to keep from losing changes (this will get easier in 5.5. with child themes)… see:  http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

then you edit the spHead.php template file in your theme… find the use of template function sp_BreadCrumbs() and change the arguments to match the example in the codex.. ie:

sp_BreadCrumbs(‘tagClass=spLeft spBreadCrumbs&tree=1’);

CP Christopher Paris
Christopher Paris
Member

Link originally provided to the solution is dead now… can someone post an updated link?

Thanks.

IK Ike
Ike
Member

Hey Christopher,

Here is the link to Creating a Child Theme

As for the ‘solution’, are you looking to also remove the home link?

If so, take a look at the arguments for sp_BreadCrumbs

Further down the page you will have examples of how to change the breadcrumb behaviour including removing / changing the home link.

FYI, the Codex used to be it’s own entity but has been merged within this site. You can still access it from the menu in the right sidebar “Codex Pages” and also the search directly underneath that.

JI jim
jim
Member

Christopher Paris said
Link originally provided to the solution is dead now

Ike said
take a look at the arguments for sp_BreadCrumbs  

FYI: The new link is only relevant for SP v. 5.x.x…

Important Note:  The contents of this document applies ONLY to version 5.x.x of Simple:Press.  It likely does NOT apply to version 6.x.x (our latest version).

Looks like this may be the new docs for sp_BreadCrumbs.