- Posts: 32
COMMUNITY FORUM
Introtext limit on multi-category page?
- EasiStudio
- Topic Author
- Offline
- Junior Member
Less
More
12 years 11 months ago #57847
by EasiStudio
Introtext limit on multi-category page? was created by EasiStudio
My K2 setup is 3 categories being news, features, events. (I have to use 3 categories because each has different additional fields.)
I created a menu item called articles and I wanted to display the latest articles from these 3 categories and limit the introtext to 60 words but can't see how to do this on the multi-category page. Instead it displays everything above the read more separator which is not ideal.
Any suggestions? I am using version 2.4.1 at the moment.
I created a menu item called articles and I wanted to display the latest articles from these 3 categories and limit the introtext to 60 words but can't see how to do this on the multi-category page. Instead it displays everything above the read more separator which is not ideal.
Any suggestions? I am using version 2.4.1 at the moment.
Please Log in or Create an account to join the conversation.
- Hermann Spörl
- Offline
- New Member
Less
More
- Posts: 7
12 years 6 months ago #57848
by Hermann Spörl
Replied by Hermann Spörl on topic Re: Introtext limit on multi-category page?
I am facing the same pronblem actually - but it seems, noone has any ideas how to fix this essential problem here...
Please Log in or Create an account to join the conversation.
- Sophie
- Offline
- New Member
Less
More
- Posts: 13
12 years 5 months ago #57849
by Sophie
Replied by Sophie on topic Re: Introtext limit on multi-category page?
I have the same issue, but an idea kicked in as I was look for a quick fix, until well the Busy K2 Team decides to look in this issue, I just change the Introtext div (div.catItemIntroText) to whatever size I wanted and made the overflow hidden, lol it kind of works for now.
Please Log in or Create an account to join the conversation.
- Pata
- Offline
- New Member
Less
More
- Posts: 3
12 years 5 months ago #57850
by Pata
Replied by Pata on topic Re: Introtext limit on multi-category page?
Hi,
did you found another solution to this?
If not ... Sophie Haba ... can you explain it to me again?! I didn't understand what I have to do to make it work.. :huh:
Sorry, I'm a newbie! :blush:
did you found another solution to this?
If not ... Sophie Haba ... can you explain it to me again?! I didn't understand what I have to do to make it work.. :huh:
Sorry, I'm a newbie! :blush:
Please Log in or Create an account to join the conversation.
- Sophie
- Offline
- New Member
Less
More
- Posts: 13
12 years 4 months ago #57851
by Sophie
Replied by Sophie on topic Re: Introtext limit on multi-category page?
Hey Pata srry for responding, I don' check the forum often. I went to find the k2 css which is in (USE FTP) if you don't already know....Components.....com_K2.......css.....open the k2.css
find the div.catItemIntroText edit that to whatever you want. here is my exact code div.catItemIntroText {
font-size:inherit;
font-weight:normal;
line-height:inherit;
height: 120px;
padding-top: 4px;
padding-right: 0;
padding-bottom: 12px;
padding-left: 0;
overflow: hidden;
}
Hope this helps
find the div.catItemIntroText edit that to whatever you want. here is my exact code div.catItemIntroText {
font-size:inherit;
font-weight:normal;
line-height:inherit;
height: 120px;
padding-top: 4px;
padding-right: 0;
padding-bottom: 12px;
padding-left: 0;
overflow: hidden;
}
Hope this helps
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Offline
- Junior Member
12 years 3 months ago #57852
by Manoj Goel
Replied by Manoj Goel on topic Re: Introtext limit on multi-category page?
This is not a good solution, especially for SEO.
This problem is not only on multi-categories page but also on "Search, Tags, Date and on User" pages, check it.
Well, BTW I have already solved this problem after scratching my head for 2 days with PHP coding.
This problem is not only on multi-categories page but also on "Search, Tags, Date and on User" pages, check it.
Well, BTW I have already solved this problem after scratching my head for 2 days with PHP coding.
Please Log in or Create an account to join the conversation.
- Manoj Goel
- Offline
- Junior Member
12 years 3 months ago #57853
by Manoj Goel
Replied by Manoj Goel on topic Re: Introtext limit on multi-category page?
Another thing is if you use this method
height:120px;
overflow:hidden;
then you have to edit your k2.css file each time if you want to change the word limit (height in your case).
height:120px;
overflow:hidden;
then you have to edit your k2.css file each time if you want to change the word limit (height in your case).
Please Log in or Create an account to join the conversation.