Support Forum
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.
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:
Visit Cruise Talk Central and Mr Papa's World
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.
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:
> > >
Visit Cruise Talk Central and Mr Papa's World
let us know if you need more on this...
Visit Cruise Talk Central and Mr Papa's World
okay, cool... need to run out for half day, but will check back and see if you need anything else..
Visit Cruise Talk Central and Mr Papa's World
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".
1 Guest(s)