home.php file
index.php will be use if this file is not created
<?php get_header(); ?> <div id=’main-content’> // paste content here </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
index.php will be use if this file is not created
<?php get_header(); ?> <div id=’main-content’> // paste content here </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
<?php <?php get_header() ?> <?php echo get_bloginfo('name');?> <?php get_footer() ?>
<?php get_header() ?> <?php // gets all post if (have_post()): while (have_posts()): the_post(); the_content(); endwwhile; endif; ?> <?php get_sidebar() ?> <?php get_footer() ?>
There are three (3) types of files
Page Templates
Template Partials:Specific part of a page get_header()
Logic and Presentation
In the functions.php register a sidebar.
register_sidebar(array ( 'name' => __ ('Footer Right', 'yourname'), //chnage yourname to your theme name 'id' => 'footer-right', // change the footer id 'decsription' => __('Widget added here will in the right section of the footer, Sevfolio'), 'before widget' => '<section id=”%1$s” class=”widget %2$s”>', 'after_widget'=> '<section>', 'before_widget' => '<h2 class=’widget-title>', 'after_title' => '</h2>' ));
In the footer.php file ad the sidebar
<?php dynamic-sidebar('footer-right'); ?>