How to add css files to header

  • Unknown's avatar
    <!DOCTYPE html>
    <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
    <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
    <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <title></title>
            <meta name="description" content="">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <meta name="author" content="">
    
            <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
            <link href='http://fonts.googleapis.com/css?family=Droid+Sans|Lato' rel='stylesheet' type='text/css'>
            <link rel="stylesheet" href="css/normalize.css">
            <link rel="stylesheet" href="css/main.css">
            <link rel="stylesheet" href="css/skeleton.css">
            <link rel="stylesheet" href="css/style.css">
            <script src="js/vendor/modernizr-2.6.2.min.js"></script>
        <?php wp_head(); ?>
    </head>

    Thats my code for my theme, everything else is working fine but the CSS isn’t working. I tried <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet"> to no success. What am I doing wrong?

  • Unknown's avatar

    It sounds like you’re trying to use PHP which isn’t available here at WordPress.com. If you’re self hosting your site then try the WordPress.org support forums (and you can read about the difference between the two here).

  • The topic ‘How to add css files to header’ is closed to new replies.