Paulw01 Posted June 24, 2009 Share Posted June 24, 2009 Hi there,I have quite a few subcategories, when a particular parent category is selected there could be a few hundred subcategories. With the "no image available" graphic displayed it takes up a fair amount of space, and looks messy.How would I disable the graphic option on subcategories ? Also is there a way to only show the subcategories within the tree structure under categories or even just display the subcategories in the centre of the screen?ThanksPaul Link to comment Share on other sites More sharing options...
aquamarine Posted June 29, 2009 Share Posted June 29, 2009 did you find a solution to the problem? I have the same scenario. Maybe if I scream, I hope to get a clear answer. I have one person that answered at another thread, but never clearly state where in the line of code you have to comment out. I'm curious how to get rid of that as well Link to comment Share on other sites More sharing options...
rocky Posted June 30, 2009 Share Posted June 30, 2009 Comment out lines 33-36 of category.tpl in your theme directory: <!-- getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> --> Then add a margin to the ul.inline_list li element in css/global.css in your theme directory to put space between the subcategories, for example: ul.inline_list li { float:left; text-align:center; margin-right: 10px; } Link to comment Share on other sites More sharing options...
Patric Posted June 30, 2009 Share Posted June 30, 2009 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...
Paulw01 Posted July 1, 2009 Author Share Posted July 1, 2009 ok many thanks will have a go . Link to comment Share on other sites More sharing options...
aquamarine Posted July 1, 2009 Share Posted July 1, 2009 it definately works! Thanks guys! Link to comment Share on other sites More sharing options...
ZuZu Posted July 5, 2009 Share Posted July 5, 2009 Hi,I followed the instructions of both Rocky and Patric and it worked. But: afterwards I noticed that the amount of products in the (sub)categories were followed by a strange sign. See attachment please. How to fix this little issue?Thanks! Link to comment Share on other sites More sharing options...
abetts Posted November 18, 2009 Share Posted November 18, 2009 I'd like to center align the images, perhaps in a 4 x 4 table otherwise they look a bit of a mess. Any help on how to do this please? Link to comment Share on other sites More sharing options...
foreigner Posted November 24, 2009 Share Posted November 24, 2009 well... maybe not a proper way.. but without hacking i just resized "-default-medium.jpg" in img\c path to 1x1 pixel and doesnt show subcategory pictures if not any Link to comment Share on other sites More sharing options...
jtlswanson Posted June 18, 2011 Share Posted June 18, 2011 Hey folks, I'm using 1.4.2.5.Removing the subcategory pictures mentioned above 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 21, 2011 Share Posted June 21, 2011 I'm also looking for a solution, how we can remove spaces between subcategories...does anyone have an idea? Link to comment Share on other sites More sharing options...
jtlswanson Posted June 21, 2011 Share Posted June 21, 2011 Maybe we should start a new thread that doesn't say Solved...we might get more responses? Can we do that? Link to comment Share on other sites More sharing options...
sunandmoon21 Posted June 21, 2011 Share Posted June 21, 2011 Maybe we should start a new thread that doesn't say Solved...we might get more responses? Can we do that? Yes, good idea...could you put up a new thread about this problem, please? I'm quite busy at the moment... Link to comment Share on other sites More sharing options...
jtlswanson Posted June 21, 2011 Share Posted June 21, 2011 Opened as new topic here:http://www.prestashop.com/forums/viewthread/115885/general_discussion/removed_subcategory_pictures__pucture_placeholders_to_far_apart_now_dot__dot__dot_/ 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...
AbuHasnain Posted March 28, 2016 Share Posted March 28, 2016 @ Rocky Hi, I have'nt find the line line in category.tpl, Where should I found. My theme is transformer Link to comment Share on other sites More sharing options...
henkhenk Posted May 16, 2016 Share Posted May 16, 2016 I suddenly saw the CATEGORY 'no image' listed when before this was not present. A setting in Themes was set to ON resulting in this. Selecting OFF at this place solved the problem, just a setting for either showing the subcategories with pictures (and no image if none set), or not showing these titles and images: Themes Display subcategories Link to comment Share on other sites More sharing options...
Recommended Posts