How to create a word press theme in HTML

Would you believe me if I said that I could create my own WordPress theme without learning PHP first? What would you do if I said 15 minutes was enough, not forever? But will you believe me? I’ve heard a lot of good news about the platform, so let’s assume that there are already HTML websites to migrate to WordPress. Easily migrate the entire site without having to start from scratch. It may not be so through androg lmonk72. Maybe one of the customers wants to convert an HTML website to WordPress. Well, you might want to know how to do it easily. Or, you may want to learn new skills in WordPress theme development Arsenal. The
Whatever your reason for being here, you will have the background you need to start creating a perfect WordPress Theme in HTML by the end of our session. Although we will borrow some PHP code everywhere to integrate all the content, by default, HTML operation and most importantly, we should expect great fun. Don’t waste a second. Just go. Install an HTML template that contains CSS stylesheets (if there are no items to work with, you can and use), and an operational WordPress with one or more WordPress Themes. Borrow a few PHP code from the Tweety fifth topic. Sublime text is also a good option, but I recommend using notepad++ to do the first thing 15 minutes before a given time
Create a folder on your desktop to save WordPress Themes. Specify any name. I designated my name wpkubee. All the files we created are in this folder. After compression, it will be uploaded as a new theme to the same folder as the WordPress installation. In addition, the HTML templates used in this tutorial are as follows: index HTML male
Male
Male
How to create WordPress Themes from HTML – wpkube
Male
Male
Male
Male
Male
This is header section Put your logo and other details here Male
Male male
Male
This is the main content area We will replace this with blog posts Male
Male male
Male
This is the side bar
Male male
Male
And this is the footer Male
Male male
Male male
Male
Male
style Css\wrap{margin: 0 Auto; width:95%; margin top:-10px; height:100%;}
Header{width:99.8%; border:1px solid \999; height:135px; background color: \1be;}
Content{width:70%; border:1px solid \999; margin top:5px; background color: \999;}
Sidebar{float:right; margin top:-54px; width:29%; border:1px solid \999; background color: \1d5;}
Footer{width:99.8%; border:1px solid \999; margin top:10px; background color: red;}
Name WordPress Theme WordPress must recognize the theme when installing. Therefore, the topic must be named correctly. Otherwise, it will never be activated. Use the code editor to create a new style. Create a CSS file and save it to the theme folder. Existing styles. The content of CSS (provided with HTML template) is new style. Paste into CSS and add the following code at the top\/*
Theme name: your theme’s name e
Male
Male male
Male male
Male
Male
Male male
Male
Male
Male
Male male
And new styles CSS must be:\/*
Theme name: your theme’s name e.g. wpkubee
Theme uri: your theme’s URL( http:\/\/yoursite.com )The
Description: a brief description of your theme
Version: 1.0 or any other version you fancy
Author: your name or wordpress Org’s username
Author uri: your web address( http:\/\/yousite.com )The
Tags: tags to locate your theme in the WordPress Theme repository e.g. wpkubee, HTML, theme etc
License: GNU General Public License v2.0
*\/The
Body{
Font family: Arial, Helvetica, Verdana;
Font size: 0.8em;
Width: 100%;
Height: 100%;
}The
Header{
Background color: \1be;
Margin left: 14%;
Top: 0;
Border width: 0.1em;
Border color: \999;
Border style: solid;
Width: 72%;
Height: 250px;
}The
Content{
Background color: \999;
Margin left: 14%;
Margin top: 5px;
Float: left;
Width: 46%;
Border width: 0.1em;
Border color: \999;
Border style: solid;
}The
Sidebar{
Background color: \1d5;
Margin right: 14%;
Margin top: 5px;
Float: right;
Border width: 0.1em;
Border color: \999;
Border style: solid;
Top: 180px;
Width: 23%;
}The
Footer{
Background color: red;
Margin left: 14%;
Float: left;
Margin top: 5px;
Width: 72%;
Height: 50px;
Border width: 0.1em;
Border color: \999;
Border style: solid;
}The
Now, let’s create a screenshot for the new WordPress theme. It can be anything, but the best way is to take a screenshot of a real subject. In addition to the screenshots that can be used, there are several points to consider. First, the screenshot is. Must be a PNG image. Second, the width must be 600 pixels and the height must be 450 pixels. Third, take a screenshot of the image to the theme folder. Save as PNG. Now there should be a WordPress theme, which is simple but can be collected together. You can add styles as you like, but before you can, you must create a word press theme that works in HTML. Part 2 of this post will add navigation menus, artifacts, and especially functions. Introduce PHP files. In other words, in this tutorial, we only discussed the basic content, so most of the features we like in word press are disabled in the new theme. During this period, all files, including screenshots, are saved to the theme folder and the folder. Compress to a zip archive file and upload a new theme. You can preview or activate the theme to make sure it works! The last word completes this step successfully

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *