Tutorials on WordPress theme creation: creating a wordpress theme without basic knowledge

Source: Internet
Author: User

What are the wordpress theme creation steps? Many friends want to create their own WordPress Themes because they like theme, but what can't they do? The following is a demo of creating a WordPress theme with zero infrastructure.

WordPress topic creation Tutorial:

1. Determine the width of your grid

Before you begin, determine how wide your mesh will be. For my WordPress website, I can see that by using Google's "Check element" function, when you right-click an object, the width of my homepage is pixel PX. This is the fastest way for the customer's house editor to quickly determine the width and height of objects on the webpage.


2. Grid Design

Instead of the hand-building mesh, you can do it. If you want, I suggest using a lot of available grid Builder Tools. In this article, I will use the grid MindPlay generator. This is a very simple and lightweight grid generator.

Here I want a display of three columns and I need to make sure that my pixel is 450. So adjust and jump to the "Export" tab.

On the export tab, use the top-most's "Style Sheet" framework and scroll down until you see the "Grid" comment. You need to copy everything from the bottom of the comment. It should only be in about 30 rows

.


3. Update your WordPress Style

Log on to your WordPress website and appearance> Editor

In the lower right corner of the editor, you will see a style. Css files (or something similar, depending on your topic ). Click this button.

Scroll to the table at the bottom and paste the table from MindPlay. dk pre:


4. Implementation Grid

To use a grid, you only need to create a grid class. Each grid area is defined in CSS. Opens up a new page or later. Go to the HTML tag to start creating your grid


Below are some examples, you can paste them in place for you to start:

Left Column

Middle Column

Right Column

Below is what it looks like in WordPress:


Save/update the page and check the result. In my case, this is the home page of the website:

As you can see from the above screen, we have three columns, everything is correct, and we hope it can. You can add any number of rows as you want to simply start from the following:

Left Column

Middle Column

Right Column

Left Row #2

Middle Row #2

Right Row #2

This is how it looks so far:

Skill adjustments

You may not be able to have multiple lines in some browsers. If you are using an image of 250 pixels and 250 pixels, then the height of the row in the grid-m4 is 250 pixels.

. Grid-m4 {

Float: left;

Width: 20px;

Height: 250px;

}

This will ensure your. The next line on the left of the grid-m1 does not float above it.

If you want to style the background of the entire grid, you may need to adjust the height of the grid. Assume that you have four rows of mesh, each of which is 250 px. The height you want to add. The grid class is 1000 px, so any style element addition will overwrite the entire grid design.

. Grid {

Width: pixel PX;

Height: 1000px;

Margin: auto;

}

Depending on the version of MindPlay. dk Mesh generator, the website may not generate ". grid-m4", instead you will need to use a. grid-m1 later. Make sure your mesh grid-c3 extends to the right location:

Left Column

Middle Column

Right Column "/p>

Final Result

The final result looks like there are two rows and some simple figures:

Have fun designing and remember that you can style your mesh in any way you want.

How about it! The WordPress theme creation process is like this! Friends without basic knowledge can easily understand it ~ Try it!

You still like the following:

Wordpress theme creation Tutorial: Main process for creating a wordpress theme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.