{"id":48860,"date":"2015-05-28T03:18:59","date_gmt":"2015-05-28T07:18:59","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=48860"},"modified":"2016-06-06T09:05:27","modified_gmt":"2016-06-06T13:05:27","slug":"prestashop-1-6-x-how-to-change-number-of-symbols-in-different-sections","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/prestashop-1-6-x-how-to-change-number-of-symbols-in-different-sections.html","title":{"rendered":"PrestaShop 1.6. How to change number of symbols in different sections"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to change number of symbols <strong>in category short description, product short description and product name<\/strong> in category listing of PrestaShop 1.6.x.<\/p>\r\n<ol>\r\n<li>\r\n<p>Find class of the element you need to update using the <strong>Inspect Element<\/strong> tool of <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\">FireBug<\/a> addon:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop-1.6.-How-to-change-number-of-symbols-in-different-sections-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/PrestaShop-1.6.-How-to-change-number-of-symbols-in-different-sections-1-300x210.png\" alt=\"PrestaShop 1.6. How to change number of symbols in different sections-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-58724\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop-1.6.-How-to-change-number-of-symbols-in-different-sections-1-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop-1.6.-How-to-change-number-of-symbols-in-different-sections-1-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/PrestaShop-1.6.-How-to-change-number-of-symbols-in-different-sections-1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Copy <strong>class or element ID<\/strong> and open the <strong>themes\/themeXXX<\/strong> directory of the template package. Look for the class required using <strong>Search tool<\/strong> of your FTP extension. Next open and edit the required file on server:<\/p>\r\n<\/li>\r\n<li>\r\n<p>Connect to server via <a target=\"_blank\" href=\"\/help\/how-upload-files-server-2.html\">FTP<\/a> or open <a target=\"_blank\" href=\"\/help\/how-to-upload-files-to-a-server-using-cpanel-webhost-manager-whm.html\">cPanel File manager<\/a> and navigate to <strong>themes\/themeXXX<\/strong> directory of PrestaShop installation.. <\/p>\r\n<\/li>\r\n<li>\r\n<p>To change <strong>category short description length<\/strong>, open the <strong>category.tpl<\/strong> file, find the following code:<\/p>\r\n<pre class=\"brush:html\">&lt;div id=&quot;category_description_short&quot;&gt;{$description_short}&lt;\/div&gt;<\/pre>\r\n<p>Change it to:<\/p>\r\n<pre class=\"brush:html\">&lt;div id=&quot;category_description_short&quot;&gt;{$description_short|truncate:25:'...'}&lt;\/div&gt;<\/pre>\r\n<p>Next, replace 25 with number of symbols you would like to display.<\/p>\r\n<\/li>\r\n<li>\r\n<p>To change <strong>product name length<\/strong> on category listing page, open the <strong>product-list.tpl<\/strong> file located in the themes\/themeXXX directory of PrestaShop installation, find the following line:<\/p>\r\n<pre class=\"brush:html\">\r\n\t\t&lt;span class=&quot;list-name&quot;&gt;{$product.name|truncate:100:'...'|escape:'html':'UTF-8'}&lt;\/span&gt;\r\n\t\t&lt;span class=&quot;grid-name&quot;&gt;{$product.name|truncate:25:'...'|escape:'html':'UTF-8'}&lt;\/span&gt;<\/pre>\r\n<p>Replace number of symbols in truncate with yours. Please note that you will need to change number of symbols for both: grid and list styles.<\/p>\r\n<\/li>\r\n<li>\r\n<p>To change <strong>product short description length<\/strong> on category listing page, open the <strong>product-list.tpl<\/strong> file located in the themes\/themeXXX directory of PrestaShop installation, find the following line:<\/p>\r\n<pre class=\"brush:html\">\r\n\t\t&lt;span class=&quot;list-desc&quot;&gt;{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}&lt;\/span&gt;\r\n\t\t&lt;span class=&quot;grid-desc&quot;&gt;{$product.description_short|strip_tags:'UTF-8'|truncate:40:'...'}&lt;\/span&gt;<\/pre>\r\n<\/li>\r\n<li>\r\n<p>Save changes in files and refresh the front-end with <strong>Ctrl\/Cmd+F5 hotkeys<\/strong> to see changes.\r\n\t\t<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=GCjsufHmgUQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">PrestaShop 1.6. How to change number of symbols in different sections<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>This video tutorial shows how to change number of symbols in different sections in PrestaShop 1.6.x.<\/p>\n","protected":false},"author":68,"featured_media":48869,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[732],"tags":[668,552,1735],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48860"}],"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\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=48860"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/48860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/48869"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=48860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=48860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=48860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}