closeupman Posted June 15, 2013 Share Posted June 15, 2013 Hi all, my breadcrumb is repeating the subcategory. e.g. > Original Paintings>Mini Colored Pencil>Mini Colored Pencil> Flowers at Breakfast should read: > Original Paintings>Mini Colored Pencil> Flowers at Breakfast Any one can tell me why and what I can do to fix it? http://sitinuriatistudio.com/mini-colored-pencil/flowers-at-breakfast.html Thanks, David 1 Link to comment Share on other sites More sharing options...
El Patron Posted June 15, 2013 Share Posted June 15, 2013 it wold appear there is some 'bug' with your breadcrump.tpl file, you will find this under in your themes/(your active theme)/breadcrumb.tpl here is what a good breadcrumb.tpl looks like. <!-- Breadcrumb --> {if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if} <div class="breadcrumb"> <a href="{$base_dir}" title="{l s='return to Home'}">{l s='Home'}</a> {if isset($path) AND $path} <span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>{$navigationPipe|escape:html:'UTF-8'}</span> {if !$path|strpos:'span'} <span class="navigation_page">{$path}</span> {else} {$path} {/if} {/if} </div> <!-- /Breadcrumb --> you could rename this file and copy the default theme breadcrumb.tpl to your themes folder to see if this resolves the problem. note: if you are pre 1.5 release then you will need to turn on force compile in the bo... Link to comment Share on other sites More sharing options...
closeupman Posted June 15, 2013 Author Share Posted June 15, 2013 thanks. I will try that out. Link to comment Share on other sites More sharing options...
closeupman Posted June 19, 2013 Author Share Posted June 19, 2013 <div><!-- Breadcrumb --></div> <div>{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}</div> <div><div class="breadcrumb"></div> <div><a href="{$base_dir}" title="{l s='Return to Home'}"><strong><img src="{$img_dir}icon/home.gif" height="26" width="26" alt="{l s='Home'}" /></strong></a></div> <div>{if isset($path) AND $path}</div> <div><span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>{$navigationPipe|escape:html:'UTF-8'}</span></div> <div>{if !$path|strpos:'span'}</div> <div><span class="navigation_page">{$path}</span></div> <div>{else}</div> <div>{$path}</div> <div>{/if}</div> <div>{/if}</div> <div></div></div> <div><!-- /Breadcrumb --></div> <div> </div> <div> </div> <div>the only difference in the line in bold and that's in my original as well. hmmm..</div> Link to comment Share on other sites More sharing options...
El Patron Posted June 20, 2013 Share Posted June 20, 2013 yes, back your themes breadcrumb.tpl and use this one...then see if it works. Link to comment Share on other sites More sharing options...
closeupman Posted June 20, 2013 Author Share Posted June 20, 2013 Hi Vincente, I tried. I copied and pasted a new breadcrumb file using the code you gave, still same problem. When I go to a category, the breadcrumb is fine, but when I go to a product, the category's name is repeated twice. Thanks, David Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now