Keyword

Whitespace in category listing of subcategories

More
7 years 1 month ago #161125 by Jared
On my site, I have subcategories shown on my category listings. K2 appears to calculate the largest subcategory description and adjust all of the block sizes to the match the largest size. I want to stop this behavior so that all of the subcategory blocks are the size of their own descriptions but I cannot find how to do this.

I have found some old forum postings like this one:
www.joomlaworks.net/forum/k2-en/22260-sub-category-display?limitstart=0

but the solution on page two about editing K2.JS doesn't seem valid anymore (can't find the lines referred to). Is there a setting I'm missing? If not, can someone point me to the code that is causing this?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #161152 by Krikor Boghossian
Replied by Krikor Boghossian on topic Whitespace in category listing of subcategories
Hello,

Can you send me a link to your site?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #161164 by Jared

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #161193 by Krikor Boghossian
Replied by Krikor Boghossian on topic Whitespace in category listing of subcategories
You will need to alter your overrides a bit.
In the category.php file (getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates) you need to alter the subCategory class.

Since this class holds some styling remember to rename it in your stylesheet as well.
.subCategoryContainer .subCategory

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #161197 by Jared
Thanks for the help/. I'm still struggling to understand what is making it adjust to the size of the largest sub-category block. Are you able to show me where that is happening at?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 month ago #161227 by Krikor Boghossian
Replied by Krikor Boghossian on topic Whitespace in category listing of subcategories
The .subCategory and the k2EqualHeight classes are used in the k2.js file in order to produce an equal heights layout.

Since editing the JS script can lead to issues, you can simply rename the CSS class.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum