- Posts: 22
COMMUNITY FORUM
[SOLVED] Two k2. css files and custom css
- Mark Schultz
- Topic Author
- Offline
- Junior Member
Less
More
7 years 11 months ago #159858
by Mark Schultz
Two k2. css files and custom css was created by Mark Schultz
I see that K2 has 2 k2.css files
/components/com_k2/css/k2.css
and
/media/k2/assets/css/k2.css
Are both files used? Which takes precedence? Do they have different styles?
How do I create custom CSS w/o editing the released files? I see there was once a CSS4K2 plugin but it's not around anymore, the suggested video tutorial is outdated. I can create overrides, but how about the CSS?
What's the latest on creating custom css? thanks.
/components/com_k2/css/k2.css
and
/media/k2/assets/css/k2.css
Are both files used? Which takes precedence? Do they have different styles?
How do I create custom CSS w/o editing the released files? I see there was once a CSS4K2 plugin but it's not around anymore, the suggested video tutorial is outdated. I can create overrides, but how about the CSS?
What's the latest on creating custom css? thanks.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 10 months ago #159892
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Two k2. css files and custom css
Hello,
One file is used in the backend and one for your site.
You can add custom styles by either overriding K2's css file (/components/com_k2/css/k2.css) or by adding new stylesheets using Joomla!'s API docs.joomla.org/JDocument/addStyleSheet
One file is used in the backend and one for your site.
You can add custom styles by either overriding K2's css file (/components/com_k2/css/k2.css) or by adding new stylesheets using Joomla!'s API docs.joomla.org/JDocument/addStyleSheet
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
7 years 10 months ago #159901
by Mark Schultz
Replied by Mark Schultz on topic Two k2. css files and custom css
thanks, to be clear, /components/com_k2/css/k2.css is used for the front end right? thanks
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
Less
More
- Posts: 438
7 years 10 months ago #159907
by Joe Campbell
Replied by Joe Campbell on topic Two k2. css files and custom css
Hi Mark,
There are a number of plugins that you can use to load additional CSS files, here are a few (in no particular order):
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/add-custom-css
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/headtag
extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control
extensions.joomla.org/extension/jquery-easy
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript
I hope this helps,
Joe Campbell
There are a number of plugins that you can use to load additional CSS files, here are a few (in no particular order):
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/add-custom-css
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/headtag
extensions.joomla.org/extensions/extension/core-enhancements/performance/js-css-control
extensions.joomla.org/extension/jquery-easy
extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/easyscript
I hope this helps,
Joe Campbell
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 10 months ago #159914
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Two k2. css files and custom css
I would opt-in not to use an extension for a simple task, where Joomla!'s API has your back.
@Joe, you know you rock, right?
@Joe, you know you rock, right?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
Less
More
- Posts: 438
7 years 10 months ago #159917
by Joe Campbell
Replied by Joe Campbell on topic Two k2. css files and custom css
Thank you for the kind words @Kricore - Just glad to help when I can :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
7 years 10 months ago #159931
by Mark Schultz
Replied by Mark Schultz on topic Two k2. css files and custom css
thanks for the links. My question was:
/components/com_k2/css/k2.css is used for the front end right?
and the k2.css is used on the backend?
thanks
/components/com_k2/css/k2.css is used for the front end right?
and the k2.css is used on the backend?
thanks
Please Log in or Create an account to join the conversation.
- Joe Campbell
- Offline
- Platinum Member
Less
More
- Posts: 438
7 years 10 months ago #159932
by Joe Campbell
Replied by Joe Campbell on topic Two k2. css files and custom css
Frontend CSS:
/templates/YOURTEMPLATE/css/k2.css
Backend CSS:
/media/k2/assets/css/k2.css
Remember: When in doubt View Source :)
/templates/YOURTEMPLATE/css/k2.css
Backend CSS:
/media/k2/assets/css/k2.css
Remember: When in doubt View Source :)
Please Log in or Create an account to join the conversation.
- Mark Schultz
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
7 years 10 months ago - 7 years 10 months ago #159933
by Mark Schultz
Replied by Mark Schultz on topic Two k2. css files and custom css
thanks that's helpful.
Last edit: 7 years 10 months ago by Mark Schultz. Reason: typo
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 7 months ago #167652
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Two k2. css files and custom css
Hello,
Maybe you misplaced this post.
Maybe you misplaced this post.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.