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

#   Limit Title Characters on Product Listing Page

##

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

Less More

- Posts: 81
- Thank you received: 6
-
-

13 years 11 months ago [\#80561](#80561) by [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")  Replied by *[foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page?start=20#80561 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

The code you gave me links the Brand and Title without a Space so if the product name is : "PBH 2100 SRE 550W Hammer Drill"

With the Brand Name: BOSCH

Result is: BOSCHPBH 2100 SRE 550W Hammer Drill

Where it should be: **BOSCH** **PBH 2100 SRE 550W Hammer Drill**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

13 years 11 months ago [\#80602](#80602) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page?start=20#80602 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Then, just add a space.
Instead of:
echo $manufacturer-&gt;category_name;
echo substr($this-&gt;row-&gt;product_name, 0, 30);

do like that:
echo $manufacturer-&gt;category_name. ' ';
echo substr($this-&gt;row-&gt;product_name, 0, 30);

The following user(s) said Thank You: [foxy3433](/forum/user/6412-foxy3433 "View foxy3433's Profile")

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

- **[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")**
- [![Мыктыбек's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30192-myktybek "View Мыктыбек's Profile")
- [ Offline](/forum/user/30192-myktybek)

Less More

- Posts: 39
- Thank you received: 0
-
-

12 years 8 months ago [\#144575](#144575) by [Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")  Replied by *[Мыктыбек](/forum/user/30192-myktybek "View Мыктыбек's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page?start=20#144575 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi in product page shows some products and i am find code in file listing_img_title.php where shows product name like this echo $this-&gt;row-&gt;product_name; and i want select product names where product_name language = english so how i can select this can you give me code please?

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#144599](#144599) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page?start=20#144599 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

Hi there,

I don't understand what you said and I don't think it's related to the topic. Could you be a bit more specific?
Products don't have a specific language so I can't see what you want to do.
Display product which only have english names? Since there is no variable for that it will require a custom field.

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

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

Less More

- Posts: 285
- Thank you received: 42
-
-

5 years 6 months ago [\#332199](#332199) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Limit Title Characters on Product Listing Page](/forum/2-general-talk-about-hikashop/76174-limit-title-characters-on-product-listing-page?start=20#332199 "Is there a way to limit the amount of characters shown for products on the products listing page????")*

This can also be done with css now
Here is how you can limit the title to 1, 2 or more rows. Code:

.hikashop_product_name{ overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; /* number of lines to show */ -webkit-box-orient: vertical; }

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTc0LWxpbWl0LXRpdGxlLWNoYXJhY3RlcnMtb24tcHJvZHVjdC1saXN0aW5nLXBhZ2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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.071 seconds

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