Ready to get started?Download WordPress


/print.css 404 error (7 posts)

  1. thierrymartin
    Posted 9 years ago #

    Why am I getting this 404 error in my logs?


    Can I remove the code referencing this? Or create a blank file with that name?

  2. Kafkaesqui

    Posted 9 years ago #

    Yes to both. To just remove the ref, look at this in the <head> portion of your page template:

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

  3. thierrymartin
    Posted 9 years ago #

    Would duplicating the style.css and renaming that print.css solve the problem and allow printing to occur properly? Or is there any need for the print.css file to be called?

  4. Kafkaesqui

    Posted 9 years ago #

    print.css (or more formally, the "print" stylesheet) is merely intended for any style information specific for page layout when printed by a browser. If it doesn't exist, the browser uses the current stylesheet, overridden with any specific , built-in requirements for a print job (such as making sure to print text as black).

    For an example of what *might* be done through the print stylesheet, visit my blog (click the name!) and hit print preview in your browser. You'll notice some distinct differences from what appears in the browser window.

  5. thierrymartin
    Posted 9 years ago #

    Where in the stylesheet does the

    div.cent {
    text-align: center;


  6. Kafkaesqui

    Posted 9 years ago #

    Catch podz reply on that in the other thread (if you haven't already).

  7. tcloer
    Posted 9 years ago #

    Just get the print.css from the 1.2.2 distribution and upload it. Works fine (although it's not actually beautiful)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.