Creating WordPress Theme – Getting Started
Let’s start creating WordPress theme by installing WordPress locally. Because we don’t want to do all the coding online. If you already have Apache, PHP, MySQL and phpMyAdmin ready (pretty long list needed huh), you can start now by downloading WordPress here.
Read How to Install XAMPP and WordPress Locally on PC/Windows if your having trouble setting up your local server. Also you might want to try searching Google if your on a different OS.
Creating Database and Installing WordPress
Extracting WordPress Files
After downloading WordPress zip file in the official website. Extract all its content to your Apache’s htdocs folder. In the video tutorial you’ll find that my folder is a little bit different. Because some changes in my configuration has been made in my local server. But it is still the same as htdocs folder or www folder on Apache or Xampp/Wamp.
Checking and Testing WordPress
You can try visiting localhost after extracting WordPress files. Just type http://localhost on your browser. And you should be able to see the welcome page. Just follow what you see in the video.
Just ignore the url I typed in my browser. Because I already configured my server to accept that address. Typing “localhost” or “127.0.0.1” would do the job.
Creating WordPress Database in PhpMyAdmin
- Database Name: “wordpress”
- User: “wp-user”
- Password: “wp-password”
In the video, you can see that I encountered a database error. That is because we haven’t created our database yet. Following the guide in the video. Simply create a database named “wordpress” like the one created in the video.
Creating or Adding User Privileges in the WordPress Database
After creating your WordPress database add a new user in the User Privilege tab. I simply used the account “wp-user” and “wp-password” as you can see in the video. But please do secure your details on your live websites. Remember that this is a sample configurations in a local server.
Installing and Logging in to WordPress Dashboard
Try to continue the WordPress setup. You should now be able to see the installation page after creating your database. Simply input your desired WordPress details to complete the setup. Though this time, remember the password you’ll be inputting. As this will be use as your login details.
In the video, I just updated/save my login details in the browser. Basically you can try it in your local browser too. But make sure to use a different password in a live site.