Forums

External CSS style sheet (3 posts)

  1. tswilson21
    Member
    Posted 1 year ago #

    I am building my own theme. I am trying to link my external header.css style sheet in my html file, but can not figure out why it is not working. header.css is located in wp-content/blank-Theme/css/header.css I have tried the normal way of linking....

    <link rel="stylesheet" href="css/header.css" type="text/css"

    but that didn't work. I have done a search on the forums and found one that matched what i was trying to do. The answer recommended doing this bit of code below, but even that didn't work...

    <title>Untitled Document</title>
    <link href="<?php bloginfo('template_directory'); ?>/header.css" rel="stylesheet" type="text/css" />
    </head>

    Does anyone know how to link an external style sheet? My style.css is getting way to overcrowded. My website is timwilsonsblog.com (if you need it) , but it manly just has filler text and still needs a lot of work, so don't judge me ;D

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    you need to add the /css/ folder into this one:

    <link href="<?php bloginfo('template_directory'); ?>/css/header.css" rel="stylesheet" type="text/css" />
  3. tswilson21
    Member
    Posted 1 year ago #

    That worked thank you!!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic