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

#   Show certain number of letters of the product name

##

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

Less More

- Posts: 81
- Thank you received: 0
-
-

10 years 9 months ago [\#227839](#227839) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  *[Show certain number of letters of the product name](/forum/26-product-category-display/881898-show-certain-number-of-letters-of-the-product-name#227839 "-- url of the page with the problem -- :   www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi Hikashop Team, Is it possible in the category the product name to display only 50 characters? To ensure that all divs have the same format..")* was created by *[bordia](/forum/user/31290-bordia "View bordia's Profile")*

-- url of the page with the problem -- : [ www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html](https://www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html)
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Hi Hikashop Team,
Is it possible in the category the product name to display only 50 characters? To ensure that all divs have the same format..

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 9 months ago -  10 years 9 months ago [\#227844](#227844) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Show certain number of letters of the product name](/forum/26-product-category-display/881898-show-certain-number-of-letters-of-the-product-name#227844 "-- url of the page with the problem -- :   www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi Hikashop Team, Is it possible in the category the product name to display only 50 characters? To ensure that all divs have the same format..")*

Hello,

HikaShop don't have option to do this, but you can use some **custom Css**!
For this, how reach your **Css files** AND create a **custom Css**, go [ here](https://www.hikashop.com/support/support/documentation/153-customize-the-display.html#css) and [ here](https://www.hikashop.com/support/support/documentation/272-hikashop-display-by-color.html#custom)

At the end of your Css file (more easy to find it, later), use this kind of code :
Code:

span.hikashop_product_name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

Maybe, you have to be more specific on your selector (in order to be applied only on your required page
Hope this will help you,

Regards,

Last edit: 10 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 81
- Thank you received: 0
-
-

10 years 9 months ago [\#228001](#228001) by [bordia](/forum/user/31290-bordia "View bordia's Profile")  Replied by *[bordia](/forum/user/31290-bordia "View bordia's Profile")* on topic *[Show certain number of letters of the product name](/forum/26-product-category-display/881898-show-certain-number-of-letters-of-the-product-name#228001 "-- url of the page with the problem -- :   www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi Hikashop Team, Is it possible in the category the product name to display only 50 characters? To ensure that all divs have the same format..")*

Great, thank you.
I've already tried to display two lines of the product name. But that did not work.

span.hikashop_product_name
{ font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 500px;
}
.txt-overflow {
position: relative;
height: 3.6em;
line-height: 1.2em;
}
.txt-overflow:after {
content: "";
text-align: right;
position: absolute;
bottom: 0;
right: 0;
width: 35%;
height: 1.2em;
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 9 months ago [\#228015](#228015) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show certain number of letters of the product name](/forum/26-product-category-display/881898-show-certain-number-of-letters-of-the-product-name#228015 "-- url of the page with the problem -- :   www.bordia.de/trennscheiben/metall-trennscheiben/aluminium.html  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8  Hi Hikashop Team, Is it possible in the category the product name to display only 50 characters? To ensure that all divs have the same format..")*

Hello,
In your case the best solution will probably be to directly edit the "listing_img_title" file of the "Product" view of your front-end template via "Hikashop-&gt;Display-&gt;Views" and change that line : Code:

echo $this-&gt;row-&gt;product_name;

By : Code:

echo substr($this-&gt;row-&gt;product_name, 0, 50);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODE4OTgtc2hvdy1jZXJ0YWluLW51bWJlci1vZi1sZXR0ZXJzLW9mLXRoZS1wcm9kdWN0LW5hbWU/dG1wbD1tYXJrZG93bg==) 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.054 seconds

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