Wordpress Template Tutorial

Worpress Template Tutorial

Creating a WordPress topic from HTML (Pt 1) When you have begun with an HTML ("+ CSS") website, you don't have to discard everything when you switch to WordPress. Now you can easily generate your HTML to WordPress and run your (now more powerful) website on the WordPress database. Maybe you're just asking yourself how you can turn a client's HTML designs into a full WordPress topic.

Maybe you want to get the WordPress (+ PHP) coding from the more trusted HTML page. This WordPress tutorial will teach you the fundamentals of how to create a WordPress topic from HTML, whatever the reasons why you are here today. So, if you're one of those guys who prefers to study by learning to read source, then just go down the startup topic, jump over the manual and see how things work... Otherwise, get a source text editor prepared (I use and suggest Notepad++ or SublimeText) and a web viewer prepared, then just obey this easy tutorial to the end.

First, we need to give your design a clear name, which is not necessary if you are creating a design just for your website. Regardless of this, we must name your design so that it is easy to recognize during setup. Let's get back to the name of your WordPress topic. Start your source text editor and copy the content of your Stylesheets to a new filename and store it as Styles. Change your topic folders to your own format.

Don't omit the (/*...*/) comments tag. WordPress says the name of your topic, the name of the writer and such free things. An important part is the name of the topic that you can use to select and enable your design from the WP dashboard. In this tutorial you will assume that you have placed your HTML template from top to bottom: headline, contents, sidebar, bottom.

So if you have a different look, you might have to go a little along with the coding. Next you have to make four php-documents. Use your source file editors to index. file names include phi, headers. phi, side bar. phi and footers. phi, and store them in your topic folders. At this point, all data is empty, so don't anticipate them doing anything.

To illustrate this I use the following index, html and style sheet style files: Simply copy them into your source fileditor, store them, build the four PHP scripts and get yourself started on the next part. Log into your WordPress install, browse to the Appearance ->> Editors and open header.php.

Copying all the stuff between the tag and pasting it into your headers. file your stuff. This is the stuff I got from the headers. in the Twenty Fourteen topic: "Then open your index. html and copy the html archive headers (i.e. the html archive headers in the section) into your headers. just under the tag, as shown below:

"The following " " " " " " " " " "'|','right' ; " " " " " " " " " " "'pingback_url' ; " " " "'stylesheet_url' ; " " " " " " " " stylesheet_url' ; " " " " " " " ....somewhere between the tag headers. . string files to associate your style sheet.

Don't forget to put the and opening tag in the headers. phi as shown above. Those three rows get the headers. php, sidebar. php und footer. php in that order and show them in the index. php, which reassembles your source again. Here, your index. directory should look like this: ; ; ; ; ; Then copy the contents of the sections side bar and root in your directory. html to side bar. directory and root. directory or directory. directory or directory.

The HTML template is about to become a WordPress topic. When you have postings in your blogs, how would you view them in your customized "HTML-to-WordPress" topic? Loop is just a special html file that shows your postings and commentaries wherever you place them. Well, to show your contributions in the contents area of the index. Now, copy the following template file between the tag and , as shown below:

Here (and using the example file in this tutorial) your headers. php should look like this: "The following is your sidebar: "'charset' ; " " " " " " " " " " " " " "'pingback_url' ; " " " " ; " ; " " " " " " " "'right. That''s what your side bar should look like:

side bar' ; your bottom line. your phone should look like this: You should save all five of your five folders in your Topic Folders.

Rename the directory as you like and use WinRar or an equal application to pack it into a zipped file. Load your new design into your WordPress install, enable it and see your translated design in use! While you can customize your design as you wish, most of the functions we like in WordPress are still disabled since...this tutorial discusses the fundamentals of HTML template conversion to WordPress and should be of great value to you as a newbie.

The next tutorial will take things a step further and introduce you to other WordPress features (such as template files and template tags) that you can use to rotate your HTML template.

Auch interessant

Mehr zum Thema