Transcript
Page 1: Creating a Wordpress Theme from Scratch

Scratch Building a Theme In WordPress

Page 2: Creating a Wordpress Theme from Scratch

Why create a theme?● learn the fundamentals● hard code plugin functionality● reduce code bloat

Page 3: Creating a Wordpress Theme from Scratch

How to create a theme● Required files:

○ style.css○ index.php

Page 4: Creating a Wordpress Theme from Scratch

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

Page 5: Creating a Wordpress Theme from Scratch

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; ?>

Page 6: Creating a Wordpress Theme from Scratch

How to create a theme● menus● functions.php

Page 7: Creating a Wordpress Theme from Scratch

CodeYou can see my code in my github account. https://github.com/BFTrick/creating-a-wordpress-theme-from-scratch

Page 8: 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


Top Related