Entry 1 - Gathering Resources and Tools
I am currently working on creating a WordPress theme from scratch and plan on detailing the entire process. As I learn what needs to be included, you will benefit from learning from my mistakes. In the end, this will also make a handy how-to guide on how to create your own WordPress theme. Without getting complicated, I will make these entries as straight forward as possible, providing you with source code, helpful links, and other relevant information. Now let us move on to the first entry on how to create your own WordPress theme.
Getting Started with a WordPress Theme
This first entry in my WordPress theme development journal is about getting started and gathering the necessary files. Before you can jump into creating a WordPress theme, there are some tools and resources that you should check out. There are three main tools that I use for creating a WordPress theme, in addition to online resources:
- Latest release of WordPress
- XAMPP Virtual Server
- Eclipse (or your favorite editor)
To start creating a WordPress theme, I found that you will need an up to date release of WordPress. Simple enough, you can download the latest package of WordPress directly from the wordpress.org homepage. For reference, my main source is the wordpress.org article on developing a theme. This contains the complete (and up to date) break down of what is needed to create a theme. Visit http://codex.wordpress.org/Theme_Development and give the first page a quick read through.
In addit grow your small business learn more about the creation of a business blog
grow your small business
learn more about the creation of a business blog
Installation is fairly easy, I use Windows 7 and did not have any trouble with the installation process; though, I ran into some issues when going to run XAMPP for the first time. After installing XAMPP, always run it as an administrator when starting it. The issue that I ran into was that the default port set for Apache was already in use. All I had to do to allow the program to operate correctly was change the port setting for Apache to something else. The only two aspects of XAMPP that I use are Apache and MySQL. Apache allows you to run PHP script and MySQL allows you to create a database.
Finally, you will need some type of editor for creating and editing files. Whether you use Notepad++ or any other editor is up to you. Personally, I prefer to use Eclipse. Eclipse is also free and can be downloaded from https://www.eclipse.org/downloads/
Once you have the latest release of WordPress, a virtual server (XAMPP), and an editor (Eclipse or your preferred editor), you are ready to setup WordPress locally using XAMPP. For detailed instructions on how to setup WordPress, I found the following tutorial very helpful. http://sixrevisions.com/tutorials/web-development-tutorials/using-xampp-for-local-wordpress-theme-development/
This tutorial walked me through setting up XAMPP and then setting up WordPress. Give the entire tutorial a quick glance and then follow the instructions to finish getting your test environment setup.
The Overall Concept of Your Theme
Start thinking about what you want to get out of your theme. For example, are you creating a theme for your own personal use or are you attempting to create a theme that others can download and use? Early on, I created a simple list of features that I would like to include and also listed some of the features that I have found dissapointing in other WordPress themes. Here is what I jotted down:
- Conceptual Ideas for WordPress Theme
- Responsive design that takes full advantage of large displays.
- Customizable. Include options for changing default fonts and font sizes.
- Provide a selection of backgrounds.
- Include placement for widgets in the sidebar, footer, header, and below content.
- Use at little code as possible.
- What I Dislike About Some WordPress Themes
- Bloated code that slows down page load time.
- Not enough options or too many options. I want a balance.
Making a list of what you want to include now will help you out later on.
That is it for getting started. I figure, this is a good stopping point for this first entry, before moving on to the anatomy of a WordPress theme, as the files you need to create will require some time and thought.
Check out the next entry in my How to Create a WordPress Theme journal.