Keyword

Styling Print window with k2.print.css

More
11 years 6 months ago #111088 by flo
I have issue with k2.print.css file under components/k2/css/ not affecting print pop-up page. I tried different folders like templates/my-template/css/ and common but without results.

I noticed with firebug that k2.print.css is indeed loaded but somehow has no effect on classes and changes altought they are correct.

Also, k2.print.css has different css type inside <head> and it is:
www.elitetravel.hr/europska-putovanja/putovanja-avionom/item/461-berlin-city-break.html

click on ISPIS to see the print window

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

More
11 years 6 months ago #111089 by joshua baer
Replied by joshua baer on topic Re: Styling Print window with k2.print.css
I too agree that something is going on here.
Im latest Joomla and K2 with a rocketheme.
No matter what I do to the print.css, nothing changes, and firebug shows it is pulling css from k2.css.
Could this be some clash between my theme?
btw, there is no over-ride file, and here is a link to my k2.print.css
code.google.com/p/getk2/source/browse/trunk/components/com_k2/css/k2.print.css?r=1812

If any one has some tips, please speak up. I sure could use anything to help bring a solution.

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

More
11 years 5 months ago #111090 by Patrick Milbrodt
Replied by Patrick Milbrodt on topic Re: Styling Print window with k2.print.css
Did you ever figure this out?

I see that the print window does not load my regular stylesheet, but it is trying to load templates/system/css/template.css - don't know where that is coming from, it loads nowhere else.

I tried specifying the media type on my print link
<a class="itemPrintLink" rel="nofollow" href="<?php echo $this->item->printLink; ?>" media="print" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;">

I'm using a custom template and no k2.css or anything.

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

  • Johann Scharfetter
  • Johann Scharfetter's Avatar
  • Offline
  • Senior Member
More
11 years 5 months ago - 11 years 5 months ago #111091 by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: Styling Print window with k2.print.css
I have the same issue. k2.print.css is not displayed in the print window.

I tried it with the defauld template as well with a custom template. withou success.

The access to my live site:
www.monpetitpot.es/index.php?option=com_k2&view=item&id=21:crema-nutritiva-de-noche-para-pieles-sensibles&Itemid=247#receta
click on "imprimir" ontop of the image to see the print page.

For testing I added this following rule to k2.print.css
Log in  or Create an account to join the conversation.