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
Reboot -- adding group to breadcrumbs?
Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Jul 15, 2017 - 8:44 pm

Seen it before, but now I can't find the instructions how to add the group to the breadcrumbs.  

And I'm wondering whether I can change the name displayed for the forum page to "Home" in the breadcrumbs too (without changing the page name because it looks good in the URL.)

Thanks for any pointers!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 15, 2017 - 9:26 pm

please look here: https://simple-press.com/docum.....eadcrumbs/

you will find that in the spHeadDesktop.php template file... as always, you should use a child theme (or custom theme)...  just set groupLink=1 in the function arguments..

and for mobile, dont forget about: https://simple-press.com/docum.....mbsmobile/

Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Nov 3, 2017 - 2:59 am

breadcrumbs.JPGImage EnlargerSo I just installed a child theme, finally.   Now I have no idea what to do.

At the top of the page is says:

FAQ / Mohave.  Not clickable. Where does that come from and why is it there?  Note that it's REVERSED from the breadcrumbs.

I want to change two things in the breadcrumbs:

1) Mohave needs to be changed to Home.

2) I need to add the groups.

Looking at https://simple-press.com/docum.....eadcrumbs/

So, I do this?

‘homeText’: HOME

‘groupLink’ => 1

But I have NO idea what to do with that.  This does NOTHING:

sp_BreadCrumbs('tagClass=spLeft homeText: HOME, groupLink => 1 spBreadCrumbs&tree=0&icon=&homeIcon=sp_CrumbsHome.png&truncate=35', __sp('Home')) ;

I added commas, deleted commas and now my eyes are about to fall out.  Are there some examples somewhere or any directions on what to actually do?

As always, much appreciate pointers!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 3, 2017 - 4:16 am

Christine Baker said

So I just installed a child theme, finally.   Now I have no idea what to do.

At the top of the page is says:

FAQ / Mohave.  Not clickable. Where does that come from and why is it there?  Note that it's REVERSED from the breadcrumbs.

That just looks like the page title to me which, incidentally, is NOT displayed by the Simple:Press theme templates but by your WordPress theme.

This can be changed by the SP options under Components > SEO. Or it can be totally removed in Options > General Display Settings. However, it must be stressed that some WordPress themes also try and manipulate the page title in some way which can mess with the SP settings or override them completely.

I want to change two things in the breadcrumbs:

1) Mohave needs to be changed to Home.
2) I need to add the groups.

Looking at https://simple-press.com/docum.....eadcrumbs/

So, I do this?

‘homeText’: HOME

‘groupLink’ => 1

But I have NO idea what to do with that.  This does NOTHING:

sp_BreadCrumbs('tagClass=spLeft homeText: HOME, groupLink => 1 spBreadCrumbs&tree=0&icon=&homeIcon=sp_CrumbsHome.png&truncate=35', __sp('Home')) ;

I added commas, deleted commas and now my eyes are about to fall out.  Are there some examples somewhere or any directions on what to actually do?  

These template display functions use the same format and rules as WordPress display functions to pass their parameters. Each parameter is separated by an ampersand and each parameter has a pre-defined name and value separated by an equals sign. You can quite clearly see this by all the parameters that were already shown in the function above. 

So - what you probably want is:

sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=0&icon=&homeIcon=sp_CrumbsHome.png&truncate=35&homeText=HOME&groupLink=1', __sp('Home'));

To be honest - the best example is already there and you just need to use the same format.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Nov 3, 2017 - 3:21 pm

Thanks!  The groups are now in my breadcrumbs, but the text didn't change.    Is ‘homeText’: HOME not the text where it says "Mohave" now?  How do I change that?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 3, 2017 - 4:20 pm

What, exactly, does 'Mohave' refer to.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Nov 3, 2017 - 10:29 pm

I couldn't make a page named "forum" because I already have one, so I made it Mohave.   I suppose I can change the page name too.  That worked! 

Thanks for your help, you have no idea how hard this is when you've never worked with functions etc.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2017 - 11:03 pm

No worries! Glad we could help and that it's now where you want it. 

Avatar
Christine Baker
NW Arizona - high desert
Member

Silver Members
sp_UserOfflineSmall Offline
Nov 4, 2017 - 2:18 pm

A little update on the page title, the FAQ | Mohave.   I checked my theme and then other install and there's no title.  Finally found the SP OPTION to NOT display the title.   And it works perfectly in my other install, but does NOTHING on this one.  Same theme, server, everything.   Finally just edited it out in the theme, so it's all good.

But I sure don't get why that option to hide the title didn't work.    Just an FYI in case someone else has that problem, I'm good now.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 4, 2017 - 3:49 pm

Did you clear your browser cache before seeing it it worked? If you re-loaded the same page as a test then it is possible that the page was rendered from the browser cache.

andy-signature.png
YELLOW
SWORDFISH
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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626