![]() |
Adding a line break to product title
Is it possible to add a line break to a product title via admin?
I want product titles to look neat and would like to be able to add a <br> to a product's name. Can anyone please advice? Thanks |
Re: Adding a line break to product title
You can modify the /skin1/customer/main/product.tpl via the admin edit templates, search from the product-title and add a </ br> line-break.
|
Re: Adding a line break to product title
I think they mean adding a break in the actual title, which isn't possible as the product name can't accept html.
|
Re: Adding a line break to product title
How about possibly modify somehow to have after x letters line-break in the template?
|
Re: Adding a line break to product title
Thanks for your responses.
Yes, I am referring to the actual product title. Is there a way to have it wrap after a certain number of characters, if html is not possible here? |
Re: Adding a line break to product title
you can truncate the product title after a number of characters, this would be like "product tit..." so you would miss some letters. Otherwise there could be a smarty template method to achieve this
|
Re: Adding a line break to product title
Sounds great. Any idea of the code to use?
|
Re: Adding a line break to product title
Maybe you could try putting the title in a fixed container width - then it will break when it does not fit in the container. Something like:
<div style="width:150px;"> <h2>This is a test title - if it does not fit in this div width - it will break to a new line</h2> </div> |
Re: Adding a line break to product title
^ Fixed div is the way to go.
|
Re: Adding a line break to product title
Thanks a lot.
|
All times are GMT -8. The time now is 06:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.