WordPress is a sophisticated “Content Management System” that uses a database to store your content, and a set of short programs written in the PHP programming language to present that content in a consistent manner. THere are many parts to this PHP “engine”, including especially themes and plugins. In this exercise you will start to set up your own wordpress site, and begin to get familiar WordPress themes are potentially very powerful, but they can also be quite simple. In this exercise we will start modify a very, very simple theme, changing the colour scheme and layout of your website’s presentation.
In your personal wordpress installation – available at http://yourname.hackinghistory.ca – you will see a theme called “Hacking History Starter Kit”. Let’s take a quick look at it:
Content Management Systems
- a CMS is a system that allows web pages, and structured sets of pages, to be constructed from existing documents and text/HTML entered by users who may have little knowledge of HTML or the other underlying technologies that display those pages. There are hundreds of CMS’s in existence today, some Free/Open Source, others distributed under non-free licenses.
What is WordPress?
Take a look at this chart:
- WP assembles a page from many component parts. This is accomplished by a now-complex set of scripts that offers instructions on what data to pull from the database and how to represent it on the page.
- the underlying scripts are primarily written in the computer language PHP, one of most popular languages for web “server-side” programming. When a URL belonging to the site is requested, the WordPress scripts activate, parse the URL, and translate it into a set of instructions which are used to generate the HTML for the specific page we want.
Posts and Pages
WordPress is highly extensible through the Plugin system. However, the default installation of WordPress comes with two main types of content:
- Posts show the origins of WordPress as a blogging engine – they’re a kind of content that’s expected to be updated frequently, and to be of largely trnasitory interest; and
- Pages, which are relatively permanent pieces of content that help populate, for instance, your menu system.
You’ll often see other kinds of content – events, for instance, or links , biblographies, Facebook-style status updates; these are additional functionality that may or may not be available to you.
- We won’t go into this here, but the information you see in a post is distributed across many entries in a relational database. Knowing this can sometimes help you to track down errors that sneak into your website through admin carelessness.
Themes, Styles and Templates
- A Theme is a collection of files – at minimum two, but often many more – from which wordpress takes instructions when presenting the page. There are thousands of themes in the official directory and thousands more for sale or download outside it.
- The easiest way to install a new theme is to download it using the WordPress Admin interface. Sometimes this won’t work – if you’re writing your own theme, for instance! I’m hoping we will have a chance to write our own Child Themes later on, so if you want to do that, drop me a line and I’ll hook you up with FTP access to the server.
Assignment: build a WordPress site
Commemorate an Imaginary Event
You are tasked with building a website that explores… something that hasn’t happened. Invent an event or historical phenomenon (feel free to write from the future if you like), and create a web page that’s suited to its exploration.
Your Site already exists
Navigate to http://yourfirstname.hackinghistory.ca. Ta-da! there’s a wordpress site ready and waiting for you. Configure it and off we go.
Think about Site Structure
You will probably want to create a small hierarchy of pages that describe your event. What are the important facts about this event? And how should they be organized? Where will you introduce visitors to the event and to the purpose of the site? How will users participate in the life of the website? In one week, you won’t be able to build Wikipedia or facebook; you might need to create placeholder pages that just explain what they ought to do.
Style your Site
How do you want this site to look? How many columns? What Images, and where? Explore the installed themes or installl your own. We’ll move on to writing our own themes soon.