Let install THEME and understand UI of our website
Theme Templates has Styling | Functions | Appearance
A standard WP theme contains the following views
=================================================
Header.php
Index.php
Sidebar.php
Archive.php
Single.php
Page.php
Search.php
Footer.php
Comments.php
Functions.php
Some of these files are optional -- e.g. If you omit single.php the index.php will render the content.
Content Templates
====================================
Index.php: The initial home page content. Default loads the most recent posts.
Page.php: Loads content classified as pages | ?page_id=2
Archive.php: Loads posts from a specific group/taxonomy. | Categories | Tags | Authors | Dates
Single.php: Loads content from a single post
Style.css: For Theme name and designe
Functions.php
===============================================
This is the first file loaded and acts just like a plug-in file.
Anything you can do with a plug-in, you can localize to a theme with functions.php
This file typically defines widget areas, loading of custom JS and CSS, and the creation of custom admin menus and logic for the theme.
If you find yourself writing functions into a template view, STOP! Write the logic in the functions.php file and just call it in the template.
If your functions.php file becomes unmanageably large, dont be afraid to break apart the logic with includes.
More theme your theme: http://wordpress.org/themes/
1 of 12
Download to read offline
More Related Content
Understanding of WordPress theme. Let install THEME and understand UI of our website