Keyword

[SOLVED] Two k2. css files and custom css

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
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.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159892 by Krikor Boghossian
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

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
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 10 months ago #159914 by Krikor Boghossian
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?

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

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

More
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
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
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

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

More
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 :)

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 7 months ago #167652 by Krikor Boghossian
Replied by Krikor Boghossian on topic Two k2. css files and custom css
Hello,

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.


Powered by Kunena Forum