Support » Fixing WordPress » How to add extra .css to wordpress?

  • Hi,

    I checked my blog on tablets and netbooks and it looked a bit bad, so I made an extra css and added to header.php in between

    <head>
    <link media=”all and (min-width: 481px) and (max-width: 768px)” type=”text/css” rel=”stylesheet” href=”tablet.css”>
    </head>

    but nothing happens. How to add an extra .css to make this work? Thanks!

Viewing 1 replies (of 1 total)
  • Drew Jaynes

    (@drewapicture)

    WordPress Core Developer

    The tablet.css file should be located in your theme’s root directly and the href should look like this:

    href="<?php bloginfo('template_directory'); ?>/tablet.css"

    If you’re using a child theme, you would change template_directory to stylesheet_directory

    You can use the bloginfo Codex page for reference.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add extra .css to wordpress?’ is closed to new replies.