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
Disable breadcrumbs
Avatar
Jakob Smith
Copenhagen, Denmark
Member
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 6:09 am

I'm using SP 5.1.3

Is it possible to disable the breadcrumbs in any other way than with "display: none;" in CSS? On the site, where I'm integrating SP I already have a breadcrumb which works well.

Searching this forum, I saw it mentioned that you can control the breadcrumbs settings:

https://simple-press.com/suppo.....al/#p89921

But I can't find this page in the SP admin pages.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 8:38 am

You referenced a v4 page which is obsolete in v5... in v5 with themes, most display elements are controlled by your sp theme... so you can completely control the layout and display by adding, removing or moving various elements around...

In this case, you just want to remove the template function that displays the breadcrumbs... so for the wp theme you are using, look in the template files folder for one called spHead.php... and find this function:

sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1', __sp('Home'));

and remove it... you may want to remove any sections holding it too if its the only element in the section...

please note, we highly recommend you make your own sp theme and not edit one of ours to keep from losing changes on upgrade... please see:

http://codex.simple-press.com/.....g-a-theme/

Avatar
Jakob Smith
Copenhagen, Denmark
Member
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 9:32 am

Thanks for a very useful reply.

I found the code in spHead.php and removed it. I'm then reusing the function in a code widget, which I'm displaying in my breadcrumb widget area. On the forum page I'm not displaying the normal breadcrumb widget, but instead the widget with this code in it:

<?php
        sp_BreadCrumbs('tree=0', __sp('Home'));
?>

Am I able to control which divider to use? I would like to use an HTML arrow: →

This is really cool because I can emulate the normal breadcrumb with this on the forum pages.

I'm using Display Widgets to control on which pages to show the widgets-

Right now I'm testing, but on the live site I will definitely make my own sp theme, as suggested by you.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 7, 2012 - 2:51 pm

Looking at the breadcrumbs code I see that currently it will only use an actual icon/image file. But the idea that it could use a character as you suggest is not such a bad idea so I will submit it as a possible addition.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jakob Smith
Copenhagen, Denmark
Member
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 9:36 pm

Is there any way that I can implement it now?

Or can you point me to where the divider is inserted, so I can implement an ad-hoc solution?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 7, 2012 - 10:08 pm

In file simple-press/forum/content/sp-common-functions.php you will find the referenced breadcrumbs display template function. You can edit and replace the icon with text.

Or you could use the filter in the function but that would require more code, but be upgrade safe.

We have opened a ticket to make this an option which hopefully can make in next release. On Sep 7, 2012 7:36 PM, "Simple:Press Support" wrote:

> > >

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2012 - 8:23 am

let us know if you need more on this...

Avatar
Jakob Smith
Copenhagen, Denmark
Member
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2012 - 8:38 am

Thanks! I think I will figure it out. I'll report back on the result.

Thanks for making it a ticket.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2012 - 8:40 am

okay, cool... need to run out for half day, but will check back and see if you need anything else..

Avatar
Jakob Smith
Copenhagen, Denmark
Member
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2012 - 10:17 am

Okay, I would like some help on how to use the filter on this.

Would that be the sph_BreadCrumbs_args filter?

I guess it would be something like "Replace HTML code for the link to the breadcrumb divider with the HTML code for a right arrow".

Hmm, and probably related to the "icon" argument in sp_BreadCrumbs() which is set to "sp_ArrowRight.png".

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online: julipfs
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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625