- Posts: 130
COMMUNITY FORUM
K2 Content Module Style - CSS Changes
- Bryan Smith
-
Topic Author
- Offline
- Premium Member
Less
More
15 years 8 months ago #71960
by Bryan Smith
K2 Content Module Style - CSS Changes was created by Bryan Smith
What is the best technique for creating different styling for k2 content module.
I understand how to use the templates, but this doesn't accommodate CSS, as far as I can tell.
Can someone clue me in here.
To start I want a K2 content that has no k2 styling. Looking for the cleanest way to accomplish this.
Just start me in the right direction here. Thanks,
I understand how to use the templates, but this doesn't accommodate CSS, as far as I can tell.
Can someone clue me in here.
To start I want a K2 content that has no k2 styling. Looking for the cleanest way to accomplish this.
Just start me in the right direction here. Thanks,
Please Log in or Create an account to join the conversation.
- Bryan Smith
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 130
15 years 8 months ago #71961
by Bryan Smith
Replied by Bryan Smith on topic K2 Content Module Style - CSS Changes
any other routes.
I want most of the styling provided by K2, just want to override (remove) in one module.
Solutions Expert said:disable css styles in parameters... then create your own styles for each part
I want most of the styling provided by K2, just want to override (remove) in one module.
Solutions Expert said:disable css styles in parameters... then create your own styles for each part
Please Log in or Create an account to join the conversation.
- Manny Santos
-
- Offline
- Senior Member
Less
More
- Posts: 49
15 years 8 months ago #71962
by Manny Santos
Replied by Manny Santos on topic K2 Content Module Style - CSS Changes
Maybe you can add a suffix to the module so you can add or change styling without changing the default CDs
Please Log in or Create an account to join the conversation.
- Manny Santos
-
- Offline
- Senior Member
Less
More
- Posts: 49
15 years 8 months ago #71963
by Manny Santos
Replied by Manny Santos on topic K2 Content Module Style - CSS Changes
Maybe you can add a suffix to the module so you can add or change styling without changing the default CSs
Please Log in or Create an account to join the conversation.
- Manny Santos
-
- Offline
- Senior Member
Less
More
- Posts: 49
15 years 8 months ago #71964
by Manny Santos
Replied by Manny Santos on topic K2 Content Module Style - CSS Changes
Maybe you can add a suffix to the module so you can add or change styling without changing the default CSs
Please Log in or Create an account to join the conversation.
- olsen
-
- Offline
- Elite Member
- Joomla and K2 Freelancer
15 years 7 months ago #71965
by olsen
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Replied by olsen on topic K2 Content Module Style - CSS Changes
U can use subtemplate feature at K2content module. At your server go to modules->K2content->tmpl, and you have folder called default. Now duplicate and rename that folder.
If you go now to any K2content module at the backend you will find a dropdown at the top right who lets you chose any subtemplate. You will find ther your new subtemplate(folder you duplicate before).
So now, what you should do its modify file default.php inside your new subtemplate folder, the style.css fo the K2 component( components->com_K2->css->style.css) and maybe the css file at your template folder to fit your needs.
Really play a bit with it, its amazing what you can do with this feature. Diferent layouts for each K2 module on your site, amazing!!!!!!!!!!!!! Also combined with any suffix class module feature of joomla bring you a very powerfull tool.
Rgds
If you go now to any K2content module at the backend you will find a dropdown at the top right who lets you chose any subtemplate. You will find ther your new subtemplate(folder you duplicate before).
So now, what you should do its modify file default.php inside your new subtemplate folder, the style.css fo the K2 component( components->com_K2->css->style.css) and maybe the css file at your template folder to fit your needs.
Really play a bit with it, its amazing what you can do with this feature. Diferent layouts for each K2 module on your site, amazing!!!!!!!!!!!!! Also combined with any suffix class module feature of joomla bring you a very powerfull tool.
Rgds
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Please Log in or Create an account to join the conversation.
- Bryan Smith
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 130
15 years 7 months ago #71966
by Bryan Smith
Replied by Bryan Smith on topic K2 Content Module Style - CSS Changes
Thanks Olsen,
I get the tmpl folder part, but are you copying a css into that folder too? And then making a call to it from default.php
Or are you just using the suffix module. I'm a little grey on using suffix module to the fullest. know of any good explainations on it?
thanks
olsen said:U can use subtemplate feature at K2content module. At your server go to modules->K2content->tmpl, and you have folder called default. Now duplicate and rename that folder.
If you go now to any K2content module at the backend you will find a dropdown at the top right who lets you chose any subtemplate. You will find ther your new subtemplate(folder you duplicate before).
So now, what you should do its modify file default.php inside your new subtemplate folder, the style.css fo the K2 component( components->com_K2->css->style.css) and maybe the css file at your template folder to fit your needs.
Really play a bit with it, its amazing what you can do with this feature. Diferent layouts for each K2 module on your site, amazing!!!!!!!!!!!!! Also combined with any suffix class module feature of joomla bring you a very powerfull tool.
Rgds
I get the tmpl folder part, but are you copying a css into that folder too? And then making a call to it from default.php
Or are you just using the suffix module. I'm a little grey on using suffix module to the fullest. know of any good explainations on it?
thanks
olsen said:U can use subtemplate feature at K2content module. At your server go to modules->K2content->tmpl, and you have folder called default. Now duplicate and rename that folder.
If you go now to any K2content module at the backend you will find a dropdown at the top right who lets you chose any subtemplate. You will find ther your new subtemplate(folder you duplicate before).
So now, what you should do its modify file default.php inside your new subtemplate folder, the style.css fo the K2 component( components->com_K2->css->style.css) and maybe the css file at your template folder to fit your needs.
Really play a bit with it, its amazing what you can do with this feature. Diferent layouts for each K2 module on your site, amazing!!!!!!!!!!!!! Also combined with any suffix class module feature of joomla bring you a very powerfull tool.
Rgds
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
Less
More
- Posts: 663
14 years 9 months ago #71967
by BBC
Replied by BBC on topic K2 Content Module Style - CSS Changes
So now, what you should do its modify file default.php inside your new subtemplate folder, the style.css fo the K2 component( components->com_K2->css->style.css) and maybe the css file at your template folder to fit your needs.
Yes......but, then you change style for content module in another position. Say that you have copied content module and now have two active.
How to style CSS completely independently ???!!
Yes......but, then you change style for content module in another position. Say that you have copied content module and now have two active.
How to style CSS completely independently ???!!
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
Less
More
- Posts: 663
14 years 9 months ago #71968
by BBC
Replied by BBC on topic K2 Content Module Style - CSS Changes
I did get that part with override and puting k2.css in template css folder. But then whole K2 get those changes, not only content module. Still confusing about all that. Documentation and info are not so good.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 9 months ago #71969
by william white
Replied by william white on topic K2 Content Module Style - CSS Changes
Read this simon.getk2.org/component/k2/item/91-templating
and this simon.getk2.org/downloads/free-extensions/item/26-css-4-k2
Then try to do the same thing except instead of using templates/html/com_k2/YourOverrideName and style_yourname
use templates/mod_K2_content/YourOverrideName and it will show up in the Module Paramaters. Making changes here will not affect anything except that module
and this simon.getk2.org/downloads/free-extensions/item/26-css-4-k2
Then try to do the same thing except instead of using templates/html/com_k2/YourOverrideName and style_yourname
use templates/mod_K2_content/YourOverrideName and it will show up in the Module Paramaters. Making changes here will not affect anything except that module
Please Log in or Create an account to join the conversation.
- BBC
-
- Offline
- Platinum Member
Less
More
- Posts: 663
14 years 9 months ago #71970
by BBC
Replied by BBC on topic K2 Content Module Style - CSS Changes
You mean to rename k2.css file (same name as template) in html/css folder? Then pick it with this plugin?
Because if you don´t do this K2 pull that css for whole extension.
Because if you don´t do this K2 pull that css for whole extension.
Please Log in or Create an account to join the conversation.
- James
-
- Offline
- New Member
Less
More
- Posts: 11
14 years 2 months ago #71971
by James
Replied by James on topic K2 Content Module Style - CSS Changes
I have created a folder in modules/mod_k2_content/tmpl called monthly focus and copied the k2.css file into this directory. When I open the module I see the monthly focus in the dropdown of sub-template types. I choose it but can not see where my changes are occurring. I have changed the background color on the even and odd for the "Zebra Rows". Can anyone provide any help.
Please Log in or Create an account to join the conversation.