Difference between revisions of "Week Two Exercises (MGDP2060)"
Karl Jones (Talk | contribs) |
Karl Jones (Talk | contribs) |
||
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)]]. | ||
− | + | == 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. | 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. | ||
Line 19: | Line 17: | ||
Replace "SUBDOMAIN" with your x10host subdomain. | Replace "SUBDOMAIN" with your x10host subdomain. | ||
− | + | == Create index.php == | |
For examples and more details, see [[WordPress subfolder installation]]. | For examples and more details, see [[WordPress subfolder installation]]. | ||
Line 48: | Line 46: | ||
</pre> | </pre> | ||
− | + | == Upload index.php to web server == | |
Use [[FTP]] to upload '''index.php''' to your web server. | Use [[FTP]] to upload '''index.php''' to your web server. | ||
Line 56: | Line 54: | ||
When working with FTP, be careful to synchronize your local and remote folders: upload from local folder '''public_html''' to remote folder '''public_html'''. | When working with FTP, be careful to synchronize your local and remote folders: upload from local folder '''public_html''' to remote folder '''public_html'''. | ||
− | + | == Update Site Address (URL) == | |
In your WordPress control panel, in the Settings page, find the Site Address (URL) field and remove the subfolder from the URL. | In your WordPress control panel, in the Settings page, find the Site Address (URL) field and remove the subfolder from the URL. | ||
− | == Browse | + | == Browse website root == |
Browse the root of your website. Confirm that WordPress displays correctly. Test various links, confirm that navigation works correctly. | Browse the root of your website. Confirm that WordPress displays correctly. Test various links, confirm that navigation works correctly. |
Revision as of 18:20, 28 August 2016
This article contains exercises for Week Two of Web Design and Development III (MGDP2060).
Contents
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
For examples and more details, see WordPress subfolder installation.
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' );
Upload index.php to web server
Use FTP to upload index.php to your web server.
Remember, index.php goes in the public_html folder (both local and remote).
When working with FTP, be careful to synchronize your local and remote folders: upload from local folder public_html to remote folder public_html.
Update Site Address (URL)
In your WordPress control panel, in the Settings page, find the Site Address (URL) field and remove the subfolder from the URL.
Browse website root
Browse the root of your website. Confirm that WordPress displays correctly. Test various links, confirm that navigation works correctly.
For next week
Read "Part Two: Building a WordPress Blog" (chapters four through eight).