WordPress Theme – how to:
At the begining I would like to say something about Themes in global. Theme is, in fact, HTML template, which suite as cloat CMS WordPress. So you can create any HTML layout, and than put it in Theme. So I will count that, those who reading this post, can create any layout in HTML. I will focus at construction on theme as an plugin, you can upload at server and just activate in “Design” menu. Most problem is to comprehense how the theme system function, and how server will get nown about it, how to put individual functions, which calling dynamic content.
For example I get default Theme – Kubrick, that is available in WP automaticaly. And because it is open source, is not problem to make any changes in it. This is the ability of WordPress, all components, so themes as well, are under GPL licence, so, everything written in that, is possibly to copy and use in your own code.
We start with inicialization of theme for the WordPress core to use it as view of our website. We will make for this issue “Preview Theme”. So in beginning we need to make definition of Theme, that serve to us basic css file localised in folder:
‘www_root/wp-content/themes/preview_theme/’
Definition is startin at first line of style.css file and looks like this:
/*
Theme Name: Jméno tématu
Theme URI: URI na kterém je domovská stránka tématu
Description: popis tématu
Version: číslo verze
Author: Vaše jméno
Author URI: vaše URI
Tags: Značky použité v tématu
Jméno tématu 1.0
http://mojedoména.cz/mojetéma/This theme was designed and built by Vase Jmeno,
whose blog you will find at http://vasedomena.info/The CSS, XHTML and design is released under GPL:
http://www.opensource.org/licenses/gpl-license.php*/
Than we can continue with writing own style. Is good to structuralize it somehow, usefull are comments for marking of styled parts, that we can handle some changes in future easily. Or to split indentificators, which then structuralize by parts of website. I differencing them by templates in website – categories, pages, content, header, and so…






