359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says

I need some help with WordPress, I tried to make a site from scratch. And well, it didn’t work… at all. I was using the “How to make … from Scratch” tutorial on NetTuts, and I followed it and it didn’t work.

I really need some help.

Here is my code:

index.php


<?php get_header(); ?> 

<div id="content">
&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;  

<h2><a href="&lt;?php the_permalink() ?&gt;">&lt;?php the_title(); ?&gt;</a></h2>  

&lt;?php the_content(); ?&gt;  

<p>&lt;?php the_time('F j, Y'); ?&gt; at &lt;?php the_time('g:i a'); ?&gt; | &lt;?php the_category(', '); ?&gt; | &lt;?php comments_number('No comment', '1 comment', '% comments'); ?&gt;</p>  

&lt;?php endwhile; else: ?&gt;  

<h2>Woops...</h2>  

<p>Sorry, no posts we're found.</p>  

    &lt;?php endif; ?&gt;  
</div>

&lt;?php get_footer(); ?&gt;  

header.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>&lt;?php bloginfo('name'); ?&gt; &lt;?php wp_title(); ?&gt;</title>
<meta content="&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('charset'); ?&gt;" http-equiv="Content-Type" />  
<link href="&lt;?php bloginfo('stylesheet_url'); ?&gt;" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.4.1.js" language="Javascript" type="text/javascript"></script>
<script src="js/jquery.lwtCountdown-0.9.5.js" language="Javascript" type="text/javascript"></script>

&lt;?php wp_head(); ?&gt; 

</head>
<body>

<div id="middle">
    <br /><br /><br /><br />
    <div id="banner">
        <div id="title"></div>
    </div>
</div></body></html>

footer.php

<div id="footer">  

    <!-- Please leave this line intact -->  
    <p>Design by <a href="http://www.jholstein.com">Jeremy Holstein</a><br />  
    <!-- you can delete below here -->  

    © &lt;?php the_time('Y'); ?&gt; &lt;?php bloginfo('name'); ?&gt;<br />  
    <a href="&lt;?php bloginfo('rss2_url'); ?&gt;">Grab the feed</a></p>  

</div>  

&lt;?php wp_footer(); ?&gt;

Please tell me what I’m doing wrong. If you go to my site (www.jholstein.com) it says there is an error on line 3. By the way, line 3 in index.php is

<?php get_header(); ?>
.

Please help.

3266 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

well to start your ending you body and html tags in your header file that should be in the footer

359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says
well to start your ending you body and html tags in your header file that should be in the footer

It isn’t like that on my code. Don’t know why it posted it here like that…

3266 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says
well to start your ending you body and html tags in your header file that should be in the footer
It isn’t like that on my code. Don’t know why it posted it here like that…
I just checked your domain and… is it on a fresh install of wordpress the error your getting is in your core folder if it was your theme it would look something like
/public_html/wp-content/theme/index.php
not(what its showing)
/public_html/index.php
359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says
well to start your ending you body and html tags in your header file that should be in the footer
It isn’t like that on my code. Don’t know why it posted it here like that…
I just checked your domain and… is it on a fresh install of wordpress the error your getting is in your core folder if it was your theme it would look something like
/public_html/wp-content/theme/index.php
not(what its showing)
/public_html/index.php

Thank you. I did not know that since the tutorial mentioned nothing of the like.

359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says

I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do.

I wish the tutorial had better info.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says
I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do. I wish the tutorial had better info.

the style sheet is in the root…. of the theme

359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says
I did that. And now also made a folder for it, and it shows it in the Manage Themes thing. But it says that it is broken, that it doesn’t have a style sheet. But it does. I don’t know what to do. I wish the tutorial had better info.
the style sheet is in the root…. of the theme

I had it in its own folder like it should and I got the error. I checked the default theme and the style sheet was in the root folder of the theme so I did the same, yet it still didn’t work.

But now I’m at school and can’t really move the files around until I get home.

Does anyone know of a tutorial that actually tells you exactly what to do? Because that NetTuts tutorial was horrible.

359 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
jjjrmy says

Or is there anywhere I can get a completely working theme t hat has everything. That is very basic that I can just use to make my own theme ontop of? Pretty much a base template to work off of. Is there any being sold on here?

8 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
TRILUX says

here is a Blank Wordpress Theme as you requested.

by
by
by
by
by
by