WordPress is open source and free Content Management System (CMS) written in PHP and MySQL. WordPress.org provides free software package that you can install directly on web/hosting server or computer. It is easiest and most demanding platform for blogging purpose. This is completely customization and used for any type of business. There is one free service, called WordPress.com and on that you can start free subdomain type blog in seconds though it has some limitation in comparison of software package installed on server or your computer. Beginners must read this post to understand the basic architecture of the WordPress creating or modifying any theme. AditMicrosys is the well know and prominent WordPress website design company and provides services Australia, US, UK, Canada and many more countries.

What is a theme ?

To make graphical interface, there is a collection of files, is called a theme. These files are also known as template files. Theme provides control over look and presentation on your WordPress website. Themes include images files, style sheets and necessary .php files. As said above, WordPress is collection of files. So whenever you see home page, then actually you are viewing several files :

  • index.php
  • header.php
  • sidebar.php
  • footer.php

Whenever you see the home page of wordpress website of any business or blogging site, then it is the combination of following files :

  • index.php
  • category.php
  • search.php
  • header.php
  • sidebar.php
  • footer.php
  • 404.php

wordpress development

Core structure :

Core structure is the main container, which holds page’s main content. It contains – Header, Menu, Content, Sidebar and Footer part. It is like building blocks through which every page is going to build with. They depend on each other, so if you do changes on one file, then you will have to do change on another. When you visit any single post page, then it contains following files :

  • Header
  • Sidebar / Menu
  • Content
  • Footer

Core structure is building blocks. They are dependent on each other. If you do change in one structure, then you have do change in another structure according to that. Take a look on this overall structure.

<html>
<head></head>
<body>
<header>
</header>
<content>
</content>
<leftside></leftside>
<rightside></rightside>
<footer></footer>
</body>
</html>

Position of content and sidebar are varies according to interface design. These containers wrap itself around the entire page and often used inside the <body> tag. You will see another names like container, page, wrap and rap in some WordPress themes. Some may use second, third and forth sidebar to create column effect.

For the implementation of function and style, add these two files at least – function.php & style.css.

Hope you like to read this article and understand the basic site architecture. In the next article, we will discuss on modular files. Subscribe to our blog to get notification on next interesting article of this series.