Difference between revisions of "Week Two Exercises (MGDP2060)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Create index.php)
Line 1: Line 1:
This article contains exercises for [[Week Two (MGDP2060)|week two]] of [[Web Design and Development III (MGDP2060)]].
+
This article contains exercises for '''[[Week Two (MGDP2060)|Week Two]]''' of [[Web Design and Development III (MGDP2060)]].
  
 
== In-class exercises ==
 
== In-class exercises ==

Revision as of 10:50, 28 August 2016

This article contains exercises for Week Two of Web Design and Development III (MGDP2060).

In-class exercises

Create folders for your work

On your laptop computer or classroom workstation, select a folder where you want to store your work for this class. Alternately, create a new folder (with a name of your choice) for this purpose. This is the base folder.

The base folder varies from student to student, depending upon how you organize your files and folders. For example, you may already have a folder named "HTC" where you store your school work. Or you may have a folder named "MGDP2060" on your desktop or elsewhere for this purpose.

Inside the base folder, create a folder with two subfolders as shown below:

SUBDOMAIN.x10host.com
     public_ftp
     public_html

Replace "SUBDOMAIN" with your x10host subdomain.

Create index.php

In the public_html folder, create a document named index.php.

Enter the following PHP code:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . 'wp/wp-blog-header.php' );

This PHP code specifies that the subfolder wp contains the WordPress blog header file.

For next week

Read "Part Two: Building a WordPress Blog" (chapters four through eight)