Keyword

Where to put css override?

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 weeks ago #102719 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Where to put css override?
RC is Rocket Theme.

K2 allows as many stylesheets as you want (Although you should only override k2.css or use your template's stylesheets ), it basically works the same way as com_content.

If your template uses a different method you should contact the template developer.

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

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

More
11 years 4 weeks ago #102720 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
I turned off Rockettheme, and it still doesn't work. I will post on their website asking if they have any ideas as well but still this does not seem to be working as described.

The article by Fotis Evangelou here is nearly 2 years old. I was not using K2 then but it makes no mention of where to put the CSS files, do they go inside the com_k2/templates/YOUROVERRIDE directory, or do they go in the CSS folder inside /YOURJOOMLATEMPLATE/CSS?

One line answers don't really help so please try to explain how its done.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 weeks ago #102721 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Where to put css override?
The overriden css files (including the k2.css) are in your template//css folder. But once again your template might use a different logic/framework.

The original file is located in /media/k2/assets/css . If you are putting this file in your css folder and still not seeing the changes then some extension or framework is not using (and blocking) the default method of overriding.

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

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

More
11 years 4 weeks ago - 11 years 4 weeks ago #102722 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
So are you saying that the CSS overrides go in /templates/YOURJOOMLATEMPLATE/html/com_k2/css or /templates/YOURJOOMLATEMPLATE/css?

Also the css file has to be called k2.css?

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

More
11 years 4 weeks ago - 11 years 4 weeks ago #102723 by jonny jackson
Replied by jonny jackson on topic Re: Where to put css override?
This is the right folder : /templates/YOURJOOMLATEMPLATE/css

simply put your css-file in to this folder. I think it has to be named k2.css...

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

More
11 years 4 weeks ago #102724 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
But won't that then override the default K2 styling for the entire website?

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

More
11 years 4 weeks ago - 11 years 4 weeks ago #102725 by jonny jackson
Replied by jonny jackson on topic Re: Where to put css override?
yes, only if you add additional custom changes... otherwise the ovveride doesnt make sense :)

Simply copy the css file k2.css from :

components/com_k2/css/

into

/templates/YOURJOOMLATEMPLATE/css/


and add changes as you wish...

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

More
11 years 4 weeks ago #102726 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
So that makes CSS4K2 obsolete or useless?

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

More
11 years 4 weeks ago #102727 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
I will go and try that out, see what the outcome is.

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

More
11 years 4 weeks ago - 11 years 4 weeks ago #102728 by Joe Collins
Replied by Joe Collins on topic Re: Where to put css override?
I disabled the K2 styling in my rockettheme template, and indeed used a default Joomla template instead for a while to see if that is causing this issue.

K2 allows me to pick the template from category manager, but it is still loading only the default k2.css file from the components/com_k2 folder.

Also tried with CSS4K2 disabled and enabled, same results. K2 is not loading the CSS file from JOOMLATEMPLATE/html/com_k2/css.

Is there a setting in K2 that turns off the use off sub-templates and maybe that is not enabled? I did look but it might be there.

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


Powered by Kunena Forum