creating a wordpress theme from scratch
DESCRIPTION
This is a small set of slides that show the fundamentals of a creating a Wordpress theme.TRANSCRIPT
Scratch Building a Theme In WordPress
Why create a theme?● learn the fundamentals● hard code plugin functionality● reduce code bloat
How to create a theme● Required files:
○ style.css○ index.php
How to create a theme● Template hierarchy is important. ● Start developing the most basic template
and create more specific templates as you go.
● http://codex.wordpress.org/Template_Hierarchy
How to create a theme● The Loop is the
basic code block used to display your content.
● http://codex.wordpress.org/The_Loop
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>
How to create a theme● menus● functions.php
CodeYou can see my code in my github account. https://github.com/BFTrick/creating-a-wordpress-theme-from-scratch
EndThat is the most basic intro for Wordpress that I can come up with.● http://codex.wordpress.
org/Theme_Development