Join Chris Coyier for an in-depth discussion in this video Setting up WordPress and WAMP on a Windows computer, part of WordPress 3: Creating and Editing Custom Themes.
I'd like to cover installing and working with WordPress locally on a…Windows machine as well.…So, I'm here in Windows 7.…I'm going to open up our web browser.…Now on the Mac, we went to and used a tool called MAMP, which stood for Mac,…Apache, PHP, and MySQL.…On Windows, we're going to use a tool called WAMP.…So we can just do a search for WAMP.…The first result here is wampserver.com.…That stands for Windows, Apache, MySQL, and PHP. So this is free.…
You can download it and install it.…I've already done that.…That puts a little thing in your Task Tray here, this little WAMP Server.…It says server offline.…I can click that and click Start All Services.…That's going to startup all of those local servers that we need running for us here.…I'll go back into our web browser, and then I'll browse to localhost.…That's where our local environment is going to be.…You can see, it says "Howdy, folks" here in the browser.…So where is that coming from?…I'm going to open up our Computer, and browse to our local C drive where we…
- Building a design in Photoshop
- Converting Photoshop design to HTML and CSS
- Setting up MAMP on Mac and WAMP on Windows
- Moving HTML and CSS into a WordPress theme
- Building navigation
- Using custom fields
- Creating a commenting system
Skill Level Intermediate
Q: What prerequisite skill do I need to be successful in this course?
Q: The index.php file that the author is working with in Chapter 3 doesn't match mine after the "Building a sidebar" movie. It appears to change between the "Building a sidebar" and "Building the navigation" movies. What code am I missing?
A: The author makes some changes off screen between several movies in this title, simply because there is so much material to cover. These changes are provided in the exercise files.
However, if you are following along without the exercise files, you catch up to him by adding the following code to your index.php file, directly after the <?php get_header(); ?> line:
Near the end of the file, just before <?php get_sidebar(); ?>, add a closing div tag, </div>, to complete the div wrapper.
The resulting code will look like so. You may also copy and paste this into a new file and save it as index.php.
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
<?php the_content(); ?>
<?php the_tags('Tags: ', ', ', '<br />'); ?>
Posted in <?php the_category(', ') ?> |
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
<?php endwhile; ?>
<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
<?php else : ?>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Q: How do I load my custom theme once I have finished?
A: Copy the Custom theme folder to your new WordPress installation and put it in wp-content > themes. Then you can activate the new theme and work with it from there.