Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Removing/Changing 'Home' Breadcrumb
Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
May 10, 2014 - 12:00 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2014 - 12:02 pm

see:  http://codex.simple-press.com/.....eadcrumbs/

third example shows how to remove home link...

Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
May 10, 2014 - 12:23 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 10, 2014 - 12:55 pm

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/.....g-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');

Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
May 11, 2014 - 8:13 am

That did the trick.

Thanks for the help!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2014 - 9:24 am

your are welcome.  glad to help.

Avatar
Christopher Paris
Member
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2015 - 4:29 pm

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

Thanks.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2015 - 4:50 pm

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.

Avatar
Christopher Paris
Member
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2015 - 6:43 pm

That's what I needed, thanks. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 10, 2015 - 8:38 pm

glad we could help!

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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616