Keyword

How do I override the k2 print css

  • Tracey
  • Tracey's Avatar Topic Author
  • Offline
  • Senior Member
More
9 years 6 months ago #132611 by Tracey
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

Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0

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

More
9 years 6 months ago - 5 years 2 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).
Last edit: 5 years 2 months ago by JoomlaWorks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 6 months ago #132613 by Krikor Boghossian
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.

More
5 years 2 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?

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

More
5 years 2 months ago #171115 by JoomlaWorks
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.


Powered by Kunena Forum