{"id":45561,"date":"2015-04-03T04:38:12","date_gmt":"2015-04-03T08:38:12","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45561"},"modified":"2016-02-22T04:11:20","modified_gmt":"2016-02-22T09:11:20","slug":"magento-how-to-change-the-length-of-product-names-on-the-product-listing-pages-and-home-page","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/magento-how-to-change-the-length-of-product-names-on-the-product-listing-pages-and-home-page.html","title":{"rendered":"Magento. How to change the length of product names on the product listing pages and home page"},"content":{"rendered":"<p>\r\n<p>In this tutorial we will teach you how to change the length of product names in different parts of your Magento store, including the product listing and home pages.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=lrTRaovJQUg?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to change the length of product names on the product listing pages and home page<\/a><\/p>\r\n<p>Sometimes, the name appears not complete, and you want to encrease the number of symbols in it, or vice versa, you want to shorten the name on specific pages.<\/p>\r\n<h3 clasa=\"custom\">Changing the number of symbols in products names on the home page<\/strong><\/h3>\r\n<ol>\r\n<li>\r\n<p>Usually there are 2 blocks with products on the home page &#8211; <strong>New products<\/strong> and <strong> Special Products<\/strong> (some templates do not include Specials block).<\/p>\r\n<\/li>\r\n<li>\r\n<p>To change the number of symbols in the <strong>&#8220;New&#8221;<\/strong> products names, go to your server using the FTP or hosting cpanel and look for the <strong>new.phtml<\/strong> file in the <strong> &#8220;app\/design\/frontend\/default\/themeXXX\/template\/catalog\/product&#8221;<\/strong> directory:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1-300x96.jpg\" alt=\"Magento_How_to_change_the_number_of_symbols_in product_name_on_the_product _listing_and_home_page_1\" width=\"300\" height=\"96\" class=\"aligncenter size-medium wp-image-45562\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1-300x96.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1-150x48.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1-1024x330.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_1.jpg 1269w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n <\/li>\r\n<li>\r\n<p>Locate the <strong>class=&#8221;product-name&#8221;<\/strong> and edit the number of symbols in <strong>mb_substr($small_getName, 0, &#8230;,&#8217;UTF-8&#8242;).&#8217;&#8230;&#8217;;}<\/strong> function:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2-300x33.jpg\" alt=\"Magento_How_to_change_the_number_of_symbols_in product_name_on_the_product _listing_and_home_page_2\" width=\"300\" height=\"33\" class=\"aligncenter size-medium wp-image-45563\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2-300x33.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2-150x16.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2-1024x113.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_2.jpg 1350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Check the update on the frontend of your site after saving the changes.<\/p>\r\n<\/li>\r\n<li>\r\n<p>The number of symbols in the names of <strong>Specials<\/strong> can be changed in the <strong>sale_carousel_list.phtml<\/strong> (or the sale_default_list.phtml, depending on the widget type used in the template) file in the <strong>app\/design\/frontend\/default\/themeXXX\/template\/catalog\/product\/widget\/sale\/&#8221;<\/strong> folder:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3-300x58.jpg\" alt=\"Magento_How_to_change_the_number_of_symbols_in product_name_on_the_product _listing_and_home_page_3\" width=\"300\" height=\"58\" class=\"aligncenter size-medium wp-image-45564\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3-300x58.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3-150x29.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3-1024x199.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_3.jpg 1281w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Edit the number in code starting from <strong>  &lt;h3 class=&#8221;product-name&#8221;&gt; <\/strong> part and save the changes:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4-300x40.jpg\" alt=\"Magento_How_to_change_the_number_of_symbols_in product_name_on_the_product _listing_and_home_page_4\" width=\"300\" height=\"40\" class=\"aligncenter size-medium wp-image-45565\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4-300x40.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4-150x20.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4-1024x138.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_4.jpg 1202w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<h3 clasa=\"custom\">Changing the number of symbols on product listing pages<\/strong><\/h3>\r\n<ol>\r\n<li>\r\n<p>The number of symbols on product listing pages (category page) can be updated in the <strong>list.phtml<\/strong> file in the <strong>&#8220;app\/design\/frontend\/default\/themeXXX\/template\/catalog\/product&#8221;<\/strong> folder on your server. The code is similar to the one in the previous files:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5-300x33.jpg\" alt=\"Magento_How_to_change_the_number_of_symbols_in product_name_on_the_product _listing_and_home_page_5\" width=\"300\" height=\"33\" class=\"aligncenter size-medium wp-image-45566\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5-300x33.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5-150x16.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5-1024x114.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/Magento_How_to_change_the_number_of_symbols_in-product_name_on_the_product-_listing_and_home_page_5.jpg 1341w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p class=\"info-box\">NOTE: Remember that the lines as well as the the code may differ a little depending on a template.<\/p>\r\n<p>We hope the tutorial was useful for you. Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=lrTRaovJQUg?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to change the length of product names on the product listing pages and home page<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will teach you how to change the length of product names in different parts of your Magento store, including the product listing and home page.<\/p>\n","protected":false},"author":78,"featured_media":45568,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[729],"tags":[933,2407,660,668,542,1735],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45561"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45561"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45568"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}