1. Create a file called print.css and put it in your themes directory, where your styles.css is (usually blog\wp-content\themes\k2).
  2. Then open header.php in your themes directory
  3. Jump to line 15.
  4. <link rel="stylesheet" type="text/css" media="screen" href="http://www.yourdomain.com/blog/wp-content/themes/k2/style.css" />
  5. After this line insert the following code:
  6. <link rel="stylesheet" type="text/css" media="print" href="http://www.yourdomain.com/blog/wp-content/themes/k2/print.css" />
  7. Modify your print.css like you want.
  8. Thats it. To test your design click print preview in your browser.

Works with Wordpress 2.0.3 - 2.0.5 and K2 Beta Two r167. Should be working with other themes too.

If you like my print design you can download my print.css here. Download: print.css

Social Bookmarking:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Verwandte Themen nach Tags:

Inhaltlich verwandte Themen:


Kein Kommentar zu “How to add print.css support into your Wordpress K2 Theme”  

  1. Keine Kommentare

Hinterlasse doch eine Nachricht.



RSS Icon Immer aktuell mit dem RSS 2.0 Feed von "Rund um unsere Welten".

Tags

Clustr Icon

Clustr Map




© Copyright 2008, Gunnar Boldhaus

Creative Commons License

XING