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">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<p><?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> | <?php the_category(', '); ?> | <?php comments_number('No comment', '1 comment', '% comments'); ?></p>
<?php endwhile; else: ?>
<h2>Woops...</h2>
<p>Sorry, no posts we're found.</p>
<?php endif; ?>
</div>
<?php get_footer(); ?>
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><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
<meta content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" http-equiv="Content-Type" />
<link href="<?php bloginfo('stylesheet_url'); ?>" 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>
<?php wp_head(); ?>
</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 -->
© <?php the_time('Y'); ?> <?php bloginfo('name'); ?><br />
<a href="<?php bloginfo('rss2_url'); ?>">Grab the feed</a></p>
</div>
<?php wp_footer(); ?>
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.
well to start your ending you body and html tags in your header file that should be in the footer
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 likewell to start your ending you body and html tags in your header file that should be in the footerIt isn’t like that on my code. Don’t know why it posted it here like that…
/public_html/wp-content/theme/index.phpnot(what its showing)
/public_html/index.php
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 likewell to start your ending you body and html tags in your header file that should be in the footerIt isn’t like that on my code. Don’t know why it posted it here like that…/public_html/wp-content/theme/index.phpnot(what its showing)/public_html/index.php
Thank you. I did not know that since the tutorial mentioned nothing of the like.
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.
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
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 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.
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?
here is a Blank Wordpress Theme as you requested.
