Copernican Theory Posted September 27, 2016 Share Posted September 27, 2016 I am creating my categories and subcategories and ran into this problem: The image area is overlapping the above subcategory's text. There's also not enough room for some of my subs titles and they get truncated... I can get by with renaming my subs although I'd rather not. Seems like there should be a bit more room here. Is there a way to allow more characters in the text box and also so the image below won't overlap that text? It's a 125x125 thumb, btw. PrestaShop 1.6.1.7 Default Theme with some modifications by me Link to comment Share on other sites More sharing options...
tdr170 Posted September 27, 2016 Share Posted September 27, 2016 (edited) Look at category.css file at or around line 51 you should see this heading #subcategories ul li at or around line 54 you will find this margin: 0 0 13px 33px; Increasing the 13px will give more room and stop the overlap, the 33px is the space between. Edited September 28, 2016 by tdr170 (see edit history) 1 Link to comment Share on other sites More sharing options...
Copernican Theory Posted September 28, 2016 Author Share Posted September 28, 2016 OK - that did it. I changed it from 13px to 40 px and to give it a more centered (top to bottom) appearance. Thank you very much. I'm going to 'Like' and mark this as solved. I still have the issue of truncated umm subcat titles(?) but that was not the topic I originally started, so I'll start another thread about that. Thanks again!! Link to comment Share on other sites More sharing options...
tdr170 Posted September 28, 2016 Share Posted September 28, 2016 Look at category.tpl at line 90 you will see this <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'}</a></h5> change the truncate size to one that is acceptable. 1 Link to comment Share on other sites More sharing options...
Copernican Theory Posted September 28, 2016 Author Share Posted September 28, 2016 Oh yeah - you ROCK! I changed it to 35 and now everything fits and it's beautiful. This just gets better and better every day. No need to post another thread. BOTH problems solved. THANKS SO VERY MUCH! Link to comment Share on other sites More sharing options...
Copernican Theory Posted September 28, 2016 Author Share Posted September 28, 2016 And for all you other newbies; if you ever edit a .tpl make sure to 'Recompile templates if the files have been updated.' Do that here: Advanced Parameters>Performance>(Smarty tab) Template Compilation. THAT could save some headaches right there, yepir Link to comment Share on other sites More sharing options...
tdr170 Posted September 28, 2016 Share Posted September 28, 2016 Hey no problem glad to help !!! 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