fishingnet Posted September 14, 2012 Share Posted September 14, 2012 (edited) Hello everyone ! I need help for setting the breadrumb length. Because, i have too many subcategories, on the product page, the breadcrumb is too long and goes to 2 or 3 lines. I want to set breadrumb in one line, using "..." instead of subcategories name. Is it possible? Thanks in advance ! Edited January 24, 2013 by fishingnet (see edit history) Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted September 14, 2012 Share Posted September 14, 2012 I'm not quite sure why you want to use breadcrumbs then turn around and shorten (i.e. remove) them. It seems to defeat the purpose of the breadcrumbs but nevertheless here is what you can do. locate your breadcrumbs.tpl file (themes/yourtheme/breadcrumbs.tpl). Now locate the following piece of code: {if !$path|strpos:'span'} <span class="navigation_page">{$path}</span> {else} {$path} {/if} Next replace it with this code: {if !$path|strpos:'span'} <span class="navigation_page">{$path|strip_tags|truncate:20:'...'}</span> {else} {$path|strip_tags|truncate:20:'...'} {/if} {/if} You will need to change '20' to whatever number fits your needs. Hope that helps! Marty Shue 1 Link to comment Share on other sites More sharing options...
fishingnet Posted September 15, 2012 Author Share Posted September 15, 2012 Thanks Marty for your fast reply! I'm not sure if I spelled correctly! English is not my native language! Sorry for that! What I want, is to use breadcrumb, but do not want to exceed a single line. I attach a screenshot to get a better understanding! My breadcrumb look like this: Home > Pescuitul crapului > Nade, momeli crap > Arome, atractanti, lichide nutritive > Aroma SENZOR BANANA & CAPSUNA - 30ml ...and should look like this: Home > Pescuitul crapului > ... > ... > Aroma SENZOR BANANA & CAPSUNA - 30ml. and, very important ! The "..." must be linkable for "Nade, momeli crap" and "Arome, atractanti, lichide nutritive" Do you think that is possible? Thank you again ! Bogdan Link to comment Share on other sites More sharing options...
fishingnet Posted October 1, 2012 Author Share Posted October 1, 2012 Nobody ? Link to comment Share on other sites More sharing options...
fishingnet Posted October 25, 2012 Author Share Posted October 25, 2012 Nobody had this problem? We urgently need to solve this, product page looks terrible. Please help me ! Link to comment Share on other sites More sharing options...
fishingnet Posted January 24, 2013 Author Share Posted January 24, 2013 Hello again ! After much work and study, i failed to solve this problem. Please, see this and tell me if it's something to do ! My products with a long name really brake their page. Thank you in advance ! Link to comment Share on other sites More sharing options...
fishingnet Posted January 24, 2013 Author Share Posted January 24, 2013 I forgot to tell you, i use 1.4.8.2 version. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted January 24, 2013 Share Posted January 24, 2013 Hello again If you do not wish to shorten the breadcrumbs (as mentioned in my earlier post) you can add the following to your CSS. Add the following to your global.css on line #649 .breadcrumb { background: url("../img/bg_breadcrumb.png") repeat scroll left top transparent; color: #FFFF00; font-size: 9px; height: 30px; line-height: 30px; overflow: hidden; padding: 0 0 0 5px; } This will hide the overflow and fix your problem. Hope that helps! Marty Shue 1 Link to comment Share on other sites More sharing options...
fishingnet Posted January 24, 2013 Author Share Posted January 24, 2013 IT HELPED A LOT ! ! ! IT SOLVED MY PROBLEM ! Now the page i mentioned above is looking great !!!!! And the rest (with long name of products) are the same ! BEAUTIFUL !!!! THANK YOU SO MUCH, MARTY !!!! You are a MASTER !!! I will set this topic as being solved ! Thank you again ! Bogdan Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted January 26, 2013 Share Posted January 26, 2013 Great! Glad to hear that solved your problem. You are very welcome! I'm just glad you found a solution to your problem after 4 months Marty Shue 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