You will now access phpMyAdmin to create the MySQL database of your website. Click on the Databases option in the toolbar on top. Enter the name of the database as WordPress and hit Create.
Go to the WordPress website and download its core files. You will receive them in a zip file that should be extracted to the following location:
Open the following link in a browser:
Select a language and then provide all the necessary database information. Enter the same term in the Database Name field that you chose while creating the MySQL database. Type root in the User Name field and press Submit.
Now define your login credentials to complete the WordPress installation procedure.
2. Create The Theme Files
We will now create a new WordPress theme by generating its core files. Remember all these files must be located inside the wp_content directory. Go to this folder and create a new sub-folder inside it and title it as “Theme”. A WordPress website needs only the index.php and style.css files to function. However, most templates have a basic layout structure of a header, footer, sidebar, and main content. We will need to create all the key files in the following manner:
header.php: This file will contain the code for the header section of your website. Create an empty file in a text editor and then insert the following code into it.
You must have noticed that we have used Bootstrap in the code. You can download Bootstrap and save the Bootstrap.js and Bootstrap.css files in your theme folder.
This is your header file that contains all the necessary styling.
index.php: In the same manner, create this file by copying the following code:
Now take a look at the image given below to understand how the code for header.php, footer.php, and sidebar.php has been called. The part from <?php if (have_posts()).. to <?php endwhile; else: ?> is the code for the main content.