Keyword

k2 title lenght in category list

More
9 years 2 months ago #140829 by Diego
k2 title lenght in category list was created by Diego
Is it possibile to reduce it? From administratior or have i to modify php??

i think it's "item->title;" in category_item.php

Regards

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

More
9 years 2 months ago #140843 by Lefteris
Replied by Lefteris on topic k2 title lenght in category list
Hi,

You have to use PHP:
<?php echo K2HelperUtilities::wordLimit($item->title, 5); ?>

Note that this will only leave 5 words on the title. If what you need to do is make the title smaller then you need to use CSS.

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

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

More
9 years 2 months ago #140853 by Diego
Replied by Diego on topic k2 title lenght in category list
thanks so much!
with a mix of your solution and smaller font-size in css 've got the best solution :)

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

More
9 years 2 months ago #140856 by Lefteris
Replied by Lefteris on topic k2 title lenght in category list
You are welcome. As a final note, keep in mind that the correct way to modify K2 files is creating overrides, not editing the core files. Information regarding overrides can be found at getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates .

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