x3n0m0rph Posted May 22, 2014 Share Posted May 22, 2014 Hi, For SEO purposes, I woud like my shop to show the short description of products on category page, when in gride view. How can I do that without messing up my theme? Please help! Link to comment Share on other sites More sharing options...
x3n0m0rph Posted May 27, 2014 Author Share Posted May 27, 2014 help...? Link to comment Share on other sites More sharing options...
x3n0m0rph Posted September 2, 2014 Author Share Posted September 2, 2014 no help here? Link to comment Share on other sites More sharing options...
vekia Posted September 2, 2014 Share Posted September 2, 2014 what prestashop version and theme you use? everything depends on this Link to comment Share on other sites More sharing options...
x3n0m0rph Posted September 2, 2014 Author Share Posted September 2, 2014 Sorry - 1.6.0.9, default theme Link to comment Share on other sites More sharing options...
vekia Posted September 2, 2014 Share Posted September 2, 2014 in /themes/default-bootstrap/product-list.tpl there is a code like: <h5 itemprop="name"> {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > {$product.name|truncate:45:'...'|escape:'html':'UTF-8'} </a> </h5> change it to: <h5 itemprop="name"> {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > {$product.name|truncate:45:'...'|escape:'html':'UTF-8'} {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} </a> </h5> Link to comment Share on other sites More sharing options...
x3n0m0rph Posted September 3, 2014 Author Share Posted September 3, 2014 This works! Thank you man!!! Link to comment Share on other sites More sharing options...
plutten22 Posted January 13, 2017 Share Posted January 13, 2017 (edited) Hi. This works fine thanks. How can can i make the product name bold and how can i make the the discription smaler. I attache a picture showing what i mean. I use PS 1.6.1.10 Regards Plutten22 Edited January 13, 2017 by plutten22 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 13, 2017 Share Posted January 13, 2017 Hi. This works fine thanks. How can can i make the product name bold and how can i make the the discription smaler. I attache a picture showing what i mean. I use PS 1.6.1.10 Regards Plutten22 product name in file http://www.cykelstaden.se/cykelstaden2013/themes/default-bootstrap/css/product_list.css change code: ul.product_list .product-name { display: inline-block; width: 100%; overflow: hidden; } to: ul.product_list .product-name { display: inline-block; width: 100%; overflow: hidden; font-weight:bold; } (i added font-weight:bold;) the case of description is a little complicated, because somehow - you put it to product_name element in this case its necessary to remove it from product_name element, then it will be possible to make it work properly then Link to comment Share on other sites More sharing options...
plutten22 Posted January 13, 2017 Share Posted January 13, 2017 Hi Vekia. I did what you said but it dos not work. Now all text is bold. Attached picture Link to comment Share on other sites More sharing options...
plutten22 Posted January 13, 2017 Share Posted January 13, 2017 Hi Vekia. I solved the problem. I put the {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} under the </a> You can see below. Thank you Vekia. You are the best !!!! <h5 itemprop="name"> {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > {$product.name|truncate:45:'...'|escape:'html':'UTF-8'} </a> {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} </h5> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now