View Single Post
(#18)
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
Lhotch is on a distinguished road
 
Posts: 1,116
Join Date: Mar 2006
Default 10-13-2006, 03:27 PM

Hmm. Im not sure where the space is coming from. The test code I gave you above works on the $breadcrumb variable which is created by functions.php so if its adding a space we should be seeing it in th etest code.

Here is a rundown of what happens, when you click a category the script category.php is called. In there the function "breadcrumb" is called which in turn creates the breadcrumb that sits above the categories showing you the category, subcategory etc. The breadcrumb is returned to the category.php scrips as a variable called $path and at the bottom of category.php the php variable $path is assigned to the template variable $breadcrumb.

This is where we come in. $breadcrumb is actually a multidimensional array and thats why there are 2 foreach loops. The 1st loops through the main array and the second loops through each array within that array assigning the value to a new variable called category which we use as the filename for you header image.

The only thing I can think of is that when the category was created there is a space in front of it. Can you check in admin, edit one of the categories and make sure there is no space in front of it?