Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't WordPress (.org) recognize my css stylesheet?
    primarykey
    data
    text
    <p>I'm making a wordpress template from scratch. I've eliminated many of the files and kept in just the header.php, footer.php, index.php, and style.css to rule out many of my potential problems.</p> <p>I've played with the code, looked up questions, googled for my solution, but I'm not sure why my style isn't being recognized when i go to my site</p> <p>the following are my 4 files:</p> <p><strong>style.css</strong></p> <pre><code>/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0} /* MAIN STYLE */ html { font-size: 20px; } body { } #bodywrapper { background: gray; font-family: arial, sans-serif; font-size: 5em; } header { height:20em; background: #000; color: #fff; margin: 0 auto; } #nav { } #nav ul { list-style-type: none; } #nav ul li { display: inline-block; padding: 1em; } #nav ul li a{ padding: 1em; text-align: center; text-decoration:none; } #nav ul li a div{ height: 5em; width: auto; padding: 1em; background-color: black; } #sandwichwrapper { margin: 2em; border: 1em solid black; } #sidebar { float: right; width: 15em; margin: 2em; border: 1em solid green; } #main { float: right; width: 15em; margin: 2em; border: 1em solid blue; } #comments{ clear: both; margin: 2em; border: 1em solid yellow; } #comment-form{ } footer { clear: both; margin: 0 auto; padding: 1em; background: #000; color: #fff; } /* BUNDLED STYLES */ header, footer{ width:100%; margin:0 auto; padding: 5em; overflow:auto; } nav #sandwich { width: 50em; } /* TEXT RULES */ h1 { size: 10em; color: green; } h2 { size: 8em; } h3 { size: 6em; } h4 { size: 4em; } h5 { size: 2em; } </code></pre> <p><strong>header.php</strong></p> <pre><code>&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;The Logic Spot&lt;/title&gt; &lt;link type="text/css" rel="stylesheet" href="style.css" /&gt; &lt;meta charset="utf-8" /&gt; &lt;!--[if IE]&gt;&lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;&lt;![endif]--&gt; header("Content-type: text/css"); &lt;/head&gt; &lt;body&gt; &lt;div id="bodywrapper"&gt; &lt;header&gt; &lt;h1&gt;&lt;a href="&lt;?php echo home_url('/')?&gt;"&gt;&lt;?php bloginfo('name')?&gt;&lt;/a&gt;&lt;/h1&gt; &lt;/header&gt; &lt;div id="nav"&gt; &lt;?php wp_nav_menu();?&gt; &lt;/div&gt; &lt;div id="sandwichwrapper"&gt; </code></pre> <p><strong>index.php</strong></p> <pre><code>&lt;?php get_header()?&gt; &lt;!--div#bodywrapper contained in header.php--&gt; &lt;!--div#sandwich contained in header.php--&gt; &lt;?php get_sidebar()?&gt; &lt;div id="main"&gt; &lt;?php while(have_posts()): the_post()?&gt; &lt;h2&gt;&lt;a href="&lt;?php the_permalink()?&gt;"&gt;&lt;?php the_title()?&gt;&lt;/a&gt;&lt;/h2&gt; &lt;p&gt;By &lt;?php echo get_the_author_link();?&gt;&lt;/p&gt; &lt;?php the_content(__('Continue Reading'))?&gt; &lt;?php endwhile?&gt; &lt;/div&gt; &lt;!--div#sandwich contained in footer.php--&gt; &lt;!--div#bodywrapper contained in header.php--&gt; &lt;?php get_footer()?&gt; </code></pre> <p><strong>footer.php</strong></p> <pre><code> &lt;/div&gt; &lt;!-- close div#sandwichwrapper--&gt; &lt;footer&gt; &lt;?=date('Y')?&gt; Copyright &lt;/footer&gt; &lt;/div&gt; &lt;!-- close div#bodywrapper--&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload