- Posts: 47
COMMUNITY FORUM
How do I override the k2 print css
- Tracey
- Topic Author
- Offline
- Senior Member
Less
More
10 years 1 month ago #132611
by Tracey
Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0
How do I override the k2 print css was created by Tracey
Hello,
How do I override k2's print css so that my changes survive a k2 update?
Also wondering what template controls the print page for k2 items and if it can also be overridden.
I checked the forums but could not find an answer.
Thanks
How do I override k2's print css so that my changes survive a k2 update?
Also wondering what template controls the print page for k2 items and if it can also be overridden.
I checked the forums but could not find an answer.
Thanks
Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0
Please Log in or Create an account to join the conversation.
- Mark Fallon
- Offline
- New Member
Less
More
- Posts: 9
10 years 1 month ago - 5 years 9 months ago #132612
by Mark Fallon
Replied by Mark Fallon on topic Re: How do I override the k2 print css
[corrected by moderator]
Use template overrides...
Copy the files:
/components/com_k2/css/k2.css
/components/com_k2/css/k2.print.css
into:
/templates/YOUR_TEMPLATE/css/ (create that folder if it doesn't exist)
Then edit the 2 files there to override default K2 CSS (that includes the print CSS as well obviously).
Use template overrides...
Copy the files:
/components/com_k2/css/k2.css
/components/com_k2/css/k2.print.css
into:
/templates/YOUR_TEMPLATE/css/ (create that folder if it doesn't exist)
Then edit the 2 files there to override default K2 CSS (that includes the print CSS as well obviously).
Last edit: 5 years 9 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 1 month ago #132613
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: How do I override the k2 print css
You can also add a print section (@media print { .. ) in your template's stylesheet.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Sori
- Offline
- Senior Member
Less
More
- Posts: 60
5 years 9 months ago #171092
by Sori
Replied by Sori on topic Re: How do I override the k2 print css
Hi,
I did this and still it is not reading my css file. what should I do?
I did this and still it is not reading my css file. what should I do?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 9 months ago #171115
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Re: How do I override the k2 print css
The original solution was incorrect so I fixed it. Have a look again: www.joomlaworks.net/forum/k2-en/37337-how-do-i-override-the-k2-print-css#132612
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.