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        <?php
                         if ( have_posts() ) :
  basic code block
                             while ( have_posts() ) :
  used to display your         the_post();
  content.                   endwhile;
● http://codex.          else:
                             ?>
  wordpress.
                             <p>Sorry, no posts
  org/The_Loop           matched your criteria.</p>
                             <?php
                         endif;
                         ?>
How to create a theme
● menus
● functions.php
Code
You can see my code in my github account.

https://github.com/BFTrick/creating-a-
wordpress-theme-from-scratch
End
That is the most basic intro for Wordpress that I
can come up with.
● http://codex.wordpress.
  org/Theme_Development

Creating a Wordpress Theme from Scratch

  • 1.
  • 2.
    Why create atheme? ● learn the fundamentals ● hard code plugin functionality ● reduce code bloat
  • 3.
    How to createa theme ● Required files: ○ style.css ○ index.php
  • 4.
    How to createa 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
  • 5.
    How to createa theme ● The Loop is the <?php if ( have_posts() ) : basic code block while ( have_posts() ) : used to display your the_post(); content. endwhile; ● http://codex. else: ?> wordpress. <p>Sorry, no posts org/The_Loop matched your criteria.</p> <?php endif; ?>
  • 6.
    How to createa theme ● menus ● functions.php
  • 7.
    Code You can seemy code in my github account. https://github.com/BFTrick/creating-a- wordpress-theme-from-scratch
  • 8.
    End That is themost basic intro for Wordpress that I can come up with. ● http://codex.wordpress. org/Theme_Development