• I have this code to link my stylesheet:

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    But how do I link another one for printing (stylsheet_print.css). I have the stylesheet ready with the media=”print” but I don’t know how the site can access to it.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • <link rel="stylesheet" href="http://your full url to the stylesheet/stylesheet_print.css" type="text/css" media="print" />

    Add that to your head.php under the regular CSS line. By full url it the whole shebang like:

    http://yoursite.com/wp-content/themes/your theme/stylesheet_print.css

    Thread Starter gorkreg

    (@gorkreg)

    Thanks tugbucket. So, the good ol’ way. No specific function in WordPress.

    see if this works:

    <link rel="stylesheet" type="text/css" media="print"
    href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />

    http://codex.wordpress.org/Styling_for_Print

    #4

    that might be better if you change themes.

    Thread Starter gorkreg

    (@gorkreg)

    It works! Thanks a million.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using a second stylesheet to print’ is closed to new replies.