COMMUNITY FORUM
changes to k2.css file
- Thierry
- Topic Author
- Offline
- New Member
Any advise greatly received.
Please Log in or Create an account to join the conversation.
- troponin
- Offline
- Platinum Member
- Posts: 398
Please Log in or Create an account to join the conversation.
- Kannan Naidu Venugopal
- Offline
- Platinum Member
- Aham Brahmasmi
As Thorsten Renz pointed out, its always good to use template override. For the css part, i will suggest to have a custom css file loaded last. Like add a css link to a specific file in your index.php. The browser will use the css values from this file. Even if you upgrade K2 the default css file will not replace your custom css file.
Eg: have a new css file in your template's css folder. like myfile.css and link to it in your index.php
K2 Rocks \m/
Please Log in or Create an account to join the conversation.
- Thierry
- Topic Author
- Offline
- New Member
Thorsten Renz wrote: you should use template overrides. So link in my Signature for more informations.
I am using K2 v2.5.4 in Joomla 1.7.3 so there was no overide package. Having looked what it contained I copied k2.css (modified) to my template css folder. I then placed the original k2.css file back in the original k2 folder location. That worked so I do not have to touch the original k2.css file. Thank you for your advice.
Please Log in or Create an account to join the conversation.
- Thierry
- Topic Author
- Offline
- New Member
Kannan Naidu wrote: Hi Thierry,
As Thorsten Renz pointed out, its always good to use template override. For the css part, i will suggest to have a custom css file loaded last. Like add a css link to a specific file in your index.php. The browser will use the css values from this file. Even if you upgrade K2 the default css file will not replace your custom css file.
Eg: have a new css file in your template's css folder. like myfile.css and link to it in your index.php
Thank you for your advice. I will also have a go at this, I assume I will have to give the classes the same name as the k2.css file otherwise there will be a lot of changes to do in categories/items.
Please Log in or Create an account to join the conversation.
- Pocket Money Marketing
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.