Keyword

How do I override the k2 print css

  • Tracey
  • Tracey's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 10 months ago #132611 by Tracey
Tracey created the topic: How do I override the k2 print css
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
4 years 10 months ago - 6 months 2 weeks ago #132612 by Mark Fallon
Mark Fallon replied the 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: 6 months 2 weeks ago by Fotis.

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

More
4 years 10 months ago #132613 by Krikor Boghossian
Krikor Boghossian replied the topic: Re: How do I override the k2 print css
You can also add a print section (@media print { .. ) in your template's stylesheet.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

More
6 months 2 weeks ago #171092 by sohrab
sohrab replied the 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
6 months 2 weeks ago #171115 by Fotis
Fotis replied the 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

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum