Page 1 of 1

Too Long title and new line

Posted: Sun Jun 16, 2019 2:44 pm
by MZaitseva
Good morning guys,

I have attached a pic and my question.

How i can break and transfer this long desciprion line to next one (within the box)?

Veersion 3.0.2.0 with default template

Many thanks!

M

Re: Too Long description and new line

Posted: Sun Jun 16, 2019 4:03 pm
by thekrotek
This isn't a description, this is title. Make it shorter and in the future NEVER create such a long titles.

Re: Too Long description and new line

Posted: Sun Jun 16, 2019 4:57 pm
by kestas
In file catalog/controller/product/product.php find line, approx 213:

Code: Select all

'text' => $product_info['name'],
replace it with:

Code: Select all

'text' => strlen($product_info['name']) > 10 ? utf8_substr($product_info['name'],0,10)."..." : $product_info['name'],
number "10" is how many characters you want to show.

Re: Too Long description and new line

Posted: Sun Jun 16, 2019 5:34 pm
by MZaitseva
MANY THANKS, kestas!

I will come to you when i need professional help with my store in future!

Re: Too Long description and new line

Posted: Sun Jun 16, 2019 8:53 pm
by kestas
MZaitseva wrote:
Sun Jun 16, 2019 5:34 pm
MANY THANKS, kestas!

I will come to you when i need professional help with my store in future!
You're welcome.

Re: Too Long description and new line

Posted: Mon Jun 17, 2019 7:27 pm
by paulfeakins
MZaitseva wrote:
Sun Jun 16, 2019 5:34 pm
MANY THANKS, kestas!
Ok but the problem is as @thekrotek says - you have tried to put a product description in the title field - don't do this!