- Posts: 12
COMMUNITY FORUM
[SOLVED] Problem with modules and K2 content
- ingvar
- Topic Author
- Offline
- New Member
Less
More
10 years 10 months ago #121629
by ingvar
[SOLVED] Problem with modules and K2 content was created by ingvar
Hello,
When I load content from K2 in to a joomla module with K2 content module the content appears as ul and li on a yellow background. Where in the code can I change so that the content just apperas as it looks?
I did not have this problem in 2.5.
I didnt manage to attach a file which shows the problem.
Regards
Caterine
When I load content from K2 in to a joomla module with K2 content module the content appears as ul and li on a yellow background. Where in the code can I change so that the content just apperas as it looks?
I did not have this problem in 2.5.
I didnt manage to attach a file which shows the problem.
Regards
Caterine
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #121630
by Yiota
Replied by Yiota on topic Re: Problem with modules and K2 content
This comes from the k2.css file for .odd and .even classes.
If you have it Enabled through the K2 Parameters you can copy the file k2.css from components/com_k2/css/ and paste it to templates/your_template/css/ folder.
Through there you can modify these classes in order not to lose your changes once you update K2 component in the future.
If you have it Enabled through the K2 Parameters you can copy the file k2.css from components/com_k2/css/ and paste it to templates/your_template/css/ folder.
Through there you can modify these classes in order not to lose your changes once you update K2 component in the future.
Please Log in or Create an account to join the conversation.
- ingvar
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
10 years 9 months ago #121631
by ingvar
Replied by ingvar on topic Re: Problem with modules and K2 content
Thanks, I found the way to change to white. Where in K2 Parameters can I blocked that?
Also, why does the content appears as unsorted list when I use the module K2 Content to retrive articles from K2 Articles. If I have a look in k2.css at line 781, I can see "ul" and "li" commands.
For my customer I just want them to create articles in K2, with the possibility to load the content in a module position.
Did you get my pdf file?
Also, why does the content appears as unsorted list when I use the module K2 Content to retrive articles from K2 Articles. If I have a look in k2.css at line 781, I can see "ul" and "li" commands.
For my customer I just want them to create articles in K2, with the possibility to load the content in a module position.
Did you get my pdf file?
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 9 months ago #121632
by Yiota
Replied by Yiota on topic Re: Problem with modules and K2 content
The k2.css parameter is located in K2 Parameters, under Layout & Views tab,
in CSS & JavaScript Settings -> K2 default CSS option.
Could you provide a link to your module page to check out what is it that you see?
Thank you.
in CSS & JavaScript Settings -> K2 default CSS option.
Could you provide a link to your module page to check out what is it that you see?
Thank you.
Please Log in or Create an account to join the conversation.
- ingvar
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
10 years 9 months ago #121633
by ingvar
Replied by ingvar on topic Re: Problem with modules and K2 content
Thanks.
You can go to 79.136.118.143.
Scroll down to the bottom. The 4 modules which comes first is just a custom module. Under comes the same content in K2 articles and loaded in a K2 Content module.
The template is from Yootheme. We did not have this problem in 2.5.
Regards
You can go to 79.136.118.143.
Scroll down to the bottom. The 4 modules which comes first is just a custom module. Under comes the same content in K2 articles and loaded in a K2 Content module.
The template is from Yootheme. We did not have this problem in 2.5.
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 9 months ago #121634
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Problem with modules and K2 content
Your template does not support K2. So basically you are seeing the default styling of the component.
You can choose to disable the loading of the K2.css or try to override them and edit them to match your template.
If disabling them does not work, try commenting out line 43. This is what causes the yellowish/ivory background.
Finally add list-style: none outside none; to line 781
You can choose to disable the loading of the K2.css or try to override them and edit them to match your template.
If disabling them does not work, try commenting out line 43. This is what causes the yellowish/ivory background.
Finally add list-style: none outside none; to line 781
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ingvar
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
10 years 9 months ago #121635
by ingvar
Replied by ingvar on topic Re: Problem with modules and K2 content
Thanks, it works! But I cant find where to take away the indent. I have tried to locate it with Firebug but I cant find where in the CSS-file I can do that change.
If you have a look again at the site you see what I mean.
Regards
If you have a look again at the site you see what I mean.
Regards
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 9 months ago #121636
by Yiota
Replied by Yiota on topic Re: Problem with modules and K2 content
The intend is a padding-left:30px; inherited through your template's css. You just have to add to the div.k2ItemsBlock ul {padding:0;}
Please Log in or Create an account to join the conversation.
- ingvar
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
10 years 9 months ago #121637
by ingvar
Replied by ingvar on topic Re: Problem with modules and K2 content
It works! Many thanks!
Regards
Caterine
Regards
Caterine
Please Log in or Create an account to join the conversation.