[Skip to main content](#vessel-content)

#   Adding line break to product name for display

##

- **[Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")**
- [![Anastasis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32098-anastasis "View Anastasis's Profile") Topic Author
- [ Offline](/forum/user/32098-anastasis)

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 9 months ago [\#188448](#188448) by [Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")  *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#188448 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")* was created by *[Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.

An example is here:
_______________
This is the product
name

---

but how to do this:

_______________
This is the
product name

---

Is it possible to add a line break in a product name?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#188451](#188451) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#188451 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")*

Hi,

It can be done with just CSS rules.
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")**
- [![Anastasis's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32098-anastasis "View Anastasis's Profile") Topic Author
- [ Offline](/forum/user/32098-anastasis)

Less More

- Posts: 13
- Thank you received: 0
-
-

11 years 9 months ago [\#188551](#188551) by [Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")  Replied by *[Anastasis](/forum/user/32098-anastasis "View Anastasis's Profile")* on topic *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#188551 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")*

> Jerome wrote: Hi,
>
> It can be done with just CSS rules.
> [ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)
>
> Regards,

Thanks again Jerome, but unfortunately I am getting the same problem as with my other post in that the page the link takes me to is unavailable. Please can you update the link. Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 8 months ago [\#188558](#188558) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#188558 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")*

Hi,

The documentation page and the link are correct ; Even if the displayed text is truncated...
Here the no-truncated version: Code:

http://www.hikashop.com/support/documentation/153-customize-the-display.html

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile")
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#205036](#205036) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#205036 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")*

Hi,
What do I add to/change in the code to add a line break?
I can't find it there.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

11 years 4 months ago [\#205043](#205043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Adding line break to product name for display](/forum/26-product-category-display/874574-adding-line-break-to-product-name-for-display#205043 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6  When a product name takes up more than one line in the product display grid it wraps to the second like. That's fine in many cases, but sometimes, it's just to much for one line by a small amount so that the top linke can be filled with text whilst the second line has a small amount of text on the second line. Visually it would look better if the text were more evenly split between the lines.  An example is here: &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  but how to do this:  &#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95;&#95; This is the product name -----  Is it possible to add a line break in a product name?")*

Hi,

It's not possible to add a break line in the product name. The br tag is stripped automatically by the system if you try.
And that's normal since otherwise, you would also have the break line everywhere: on the checkout, in the order, the invoices, the emails and it would just look bad.
Now if you really want to do that, you can change the line:
$noFilter = array();
to:
$noFilter = array('product_name');
in the file administrator/components/com_hikashop/classes/field.php but I don't recommend it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzQ1NzQtYWRkaW5nLWxpbmUtYnJlYWstdG8tcHJvZHVjdC1uYW1lLWZvci1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.180 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
