kalua Posted January 10, 2015 Share Posted January 10, 2015 Hey all I'am searching for a solution to change the standard height of a category. For example .. In my case, i have a lot of information (text and images) in the categories page. Because of that size, all the content will not be shown. As a result, after approximately 800Px of height there is a link that says "more". After a click on that, all the content appears. But that's exactly not what I want. I want that the content of the categories should appear in total. As a possible solution I changed the global.css at line 5599 from display: none to display: block But, after that, all the content will show up twice. Any idea or solution how to fix that? Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2015 Share Posted January 10, 2015 share url cases related to css need an inspection Link to comment Share on other sites More sharing options...
kalua Posted January 10, 2015 Author Share Posted January 10, 2015 (edited) Sure ... http://www.cosmos-bodystyling.com/presta/15-anwendung PS 1.6.0.11 with default theme and css Edited January 10, 2015 by kalua (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2015 Share Posted January 10, 2015 category.tpl change code: {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} to: <div>{$category->description}</div> Link to comment Share on other sites More sharing options...
kalua Posted January 12, 2015 Author Share Posted January 12, 2015 Hey Vekia Thanks, it works fine. But I had to change the code twice. The first at line 36 and second at line 59 But at line 64 there is the class="rte" for the div that I keep. Hope that it does not show other strange things ;-) So in total I just deleted the "if" command and left the div as it was. Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2015 Share Posted January 12, 2015 great, thank you for clarification as i suppose everything works well now? Link to comment Share on other sites More sharing options...
kalua Posted January 12, 2015 Author Share Posted January 12, 2015 (edited) Hey Vekia Still testing, but seems everythings running fine now. One thing I had to change was the if clause at line 48 that imports a background:url that was not working correctly with the changes. If I keep it, one part of the first image was included in a big size but as I delete this part, i looks good right now. So right now most problems have been solved, only this one seems to have a bigger bug in the script ... http://www.prestashop.com/forums/topic/393924-no-change-possible-with-specific-price/ Do you have an idea about? Edited January 12, 2015 by kalua (see edit history) 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