jtlswanson Posted June 21, 2011 Share Posted June 21, 2011 Hey folks, I’m using 1.4.2.5.Removing the subcategory pictures mentioned here: http://www.prestashop.com/forums/viewreply/472540/ works great changing the coding in the category.tpl file! But changing the coding in the global.css file does not make a difference in bringing the subcategories closer together (Am I correct in thinking that in 1.4.2.5 global.css it’s changed to “.inline_list li” not “ul.inline_list li”). There’s still a lot of spacing between the subcategories (see attached photo)…any ideas to work with 1.4.2.5?Thanks in advance for help and suggestions!JTLS Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 23, 2011 Share Posted June 23, 2011 I'm also looking for a solution on this...anyone can help? Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 27, 2011 Share Posted June 27, 2011 bump...any ideas? Link to comment Share on other sites More sharing options...
jtlswanson Posted June 27, 2011 Author Share Posted June 27, 2011 No one has any advise? please? Link to comment Share on other sites More sharing options...
jaro61 Posted June 27, 2011 Share Posted June 27, 2011 Remove from ..your theme/category.tpl this code. Around line 65. {* getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} *} Link to comment Share on other sites More sharing options...
jtlswanson Posted June 27, 2011 Author Share Posted June 27, 2011 Thanks Jaro61!It works, but now I am getting a 1 liner that just says "Subcategories" in its place...See attach imageJTLS Link to comment Share on other sites More sharing options...
jaro61 Posted June 28, 2011 Share Posted June 28, 2011 2 lines above and remove {l s='Subcategories'} Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 28, 2011 Share Posted June 28, 2011 Hey Jaro61,When I changed the code, all my subcategories got removed from the page...I just want to decrease the spaces between the name of subcategories, as it was mentioned in original post.Do you have any idea how to do that? Link to comment Share on other sites More sharing options...
jaro61 Posted June 28, 2011 Share Posted June 28, 2011 Try this.. rocky's hack works fine, but I would bring two changes :1/In the .tpl files, instead of using<!-- and -->to comment some HTML code, it may be better to use the smarty comments :{* and *}The difference is that the HTML comments will remain in the page source code and can be seen.2/in the global.css, I would put instead : ul.inline_list li { float:left; text-align:center; width : 100px; margin-left: auto; margin-right: auto; margin-top : 30px; margin-bottom : 20px} (line 67) Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 28, 2011 Share Posted June 28, 2011 Thanks, although I haven't tried your code because meanwhile I found a solution for this problem:just change the height in category.css to reduce spaces between subcategories: body#category #subcategories li { height: 136px; width: 108px; margin-right: 3px } change the height to 70px or whatever you want... Link to comment Share on other sites More sharing options...
resa55 Posted July 30, 2011 Share Posted July 30, 2011 If I want to remove the subcategories completely from the main content, would adding this in global.css cause problems?: #center_column #subcategories { display: none; } Link to comment Share on other sites More sharing options...
manandhar Posted September 9, 2011 Share Posted September 9, 2011 hi, the above given code is not functioning in my Site (Prestashop version 1.4.4.1). Actually I don't have pictures of all product and sub categories. So I want to disable the pictures for Sub Categories and for Products). Can you perhaps help me? Regards, Manandhar Link to comment Share on other sites More sharing options...
skibbi Posted December 3, 2013 Share Posted December 3, 2013 What a pile... Link to comment Share on other sites More sharing options...
mr913 Posted February 16, 2016 Share Posted February 16, 2016 From another thread on this subject: You can change the "no image" picture in Back-end under the Tools tab -> Languages. You can see the list of languages used in your site. Click the edit link of the language which you are going to change the image. In a "No-picture" image field, browse and select the image you want. Lastly, click save.Hope this will help you guys and to others looking for the same solution.. Link to comment Share on other sites More sharing options...
Recommended Posts