| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding a line break to product title | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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.
__________________
Richard Ultimate 5.4 testing |
|||||||||
#3
|
|||||||
|
|||||||
![]() I think they mean adding a break in the actual title, which isn't possible as the product name can't accept html.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
![]() How about possibly modify somehow to have after x letters line-break in the template?
__________________
Richard Ultimate 5.4 testing |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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? |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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
__________________
Richard Ultimate 5.4 testing |
|||||||||
#7
|
|||||||
|
|||||||
![]() Sounds great. Any idea of the code to use?
|
|||||||
#8
|
|||||||||
|
|||||||||
![]() 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>
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() ^ Fixed div is the way to go.
|
|||||||||
#10
|
|||||||
|
|||||||
![]() Thanks a lot.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|