- Posts: 61
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- How to eliminate the large empty space under "view items" in Category view?
How to eliminate the large empty space under "view items" in Category view?
- that library
-
Topic Author
- Offline
- Senior Member
Please Log in or Create an account to join the conversation.
- Chris Yates
-
- Offline
- Senior Member
- Posts: 62
It's just a guess but encountered a similar problem using the k2_content module.
If you take a look at the .php file controlling the layout of this list, you may well find one or morestatements floating loose so to speak. Should they exist then each should be included with the above corresponding if statements.
If you can't find the file yourself, I'll take a look tomorrow.
CHRIS
Please Log in or Create an account to join the conversation.
- piperchick
-
- Offline
- Premium Member
- Posts: 133
< div class="subCategory" style="height: 396px;" >
Change to 100%. You will also want to add a bit of padding back in there to separate from the following article.
I am not very savvy with FireBug, so I am not sure where that 396px is coming from.
Please Log in or Create an account to join the conversation.
- that library
-
Topic Author
- Offline
- Senior Member
- Posts: 61
I even added "height:100%;" to line 298 of k2.css so it now is:
div.subCategoryContainer {float:left;height:100%;}
and the same to style.css line 293, so now it is:
div.subCategoryContainer {float:left;height:100%}
yet it looks exactly the same ... the weird thing is that before the page is loaded completely, the categories look well-spaced (as in, not the huge gap between them), but then at the last minute, as the page completes loading, whammo, bammo! They all space out again. Moucho frustrado!
If any code wizard, techno mages can help me figure out which file the "< div class="subCategory" style="height: 396px;" >" is located in, I will be eternally grateful!
Please Log in or Create an account to join the conversation.
- that library
-
Topic Author
- Offline
- Senior Member
- Posts: 61
So far, I have looked in k2.css, style.css and both have been changed to add the "float:left;height:100%" within the curly-brackets (as mentioned above)... so they match. There is nothing in the k2.php, view.raw.php, generic.php, view.html.php (can you tell I'm looking everywhere I can think of?) and I see nothing, Nothing that delineates "< div class="subCategory" style="height: 396px;" >" ....
Are there any other files that I should edit or look at?
And what gives with the loading perfectly, beautifully and then at the last minute adding all this ugly white space between categories? This is really, really bugging me and others don't seem to have this problem. I do not have any special, extra template - I'm just using the standard K2 template...
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
You could also open the category.php of your template override (in templates/yourTemplate/html/com_k2/default/category.php) and where it says div class="subCategory" check if there is a style for the height on this element. If you don't have a template override this is not recommended, because on an upgrade you will loose all changes.
Please Log in or Create an account to join the conversation.
- zelda
-
- Offline
- New Member
- Posts: 6
First, you have a got a JS error (Firebug Console), probably coming from a conflict between jQuery and Mootools, ie you've installed an extension using jQuery when K2 relies heavily on mootools.
And those 2 don't get too well together even though there are workarounds.
Second, this
< div class="subCategory" style="height: 396px;" > is coming from a K2 JS script (Moo based) conflicting with a jQuery script and thus not working.
See ---- > Line 92 in k2.js in com_k2/js
You should deactivate one by one your extensions (at least those with jQuery) to find where the pb lies.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
zelda said:Hi, First, you have a got a JS error (Firebug Console), probably coming from a conflict between jQuery and Mootools, ie you've installed an extension using jQuery when K2 relies heavily on mootools.
And those 2 don't get too well together even though there are workarounds.
Second, this
< div class="subCategory" style="height: 396px;" > is coming from a K2 JS script (Moo based) conflicting with a jQuery script and thus not working.
See ---- > Line 92 in k2.js in com_k2/js
You should deactivate one by one your extensions (at least those with jQuery) to find where the pb lies.
Please Log in or Create an account to join the conversation.
- that library
-
Topic Author
- Offline
- Senior Member
- Posts: 61
Please Log in or Create an account to join the conversation.
- Edwin Bernal Holguin
-
- Offline
- New Member
- Posts: 3
community.getk2.org/forum/topics/category-and-subcategories?
Please Log in or Create an account to join the conversation.
- that library
-
Topic Author
- Offline
- Senior Member
- Posts: 61
Please Log in or Create an account to join the conversation.
- jacklib
-
- Offline
- New Member
- Posts: 8
<div class="subCategory" style="height:454px"> and delete style="height:454px"
I don't see this height in the latest version of K2, strange that you have it hard coded in your template.
Please Log in or Create an account to join the conversation.
- jacklib
-
- Offline
- New Member
- Posts: 8
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- How to eliminate the large empty space under "view items" in Category view?