Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter luvleyl

    (@luvleyl)

    Thank you for your help! I just figured out the loop!

    Thread Starter luvleyl

    (@luvleyl)

    Ok, the index.php code is below and below that is the child template main.php code

    Index.php Code

    <?php
    /**
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    
    function wp_additional_css()
    {
    wp_enqueue_style( ' style' , WP_CONTENT_DIR . ' /themes/960.css' );
    wp_enqueue_style(  'style' , WP_CONTENT_DIR . ' /themes/screen. css' );
    }
    add_action( ' wp_enqueue_scripts' , ' wp_additional_css' );
    
    get_header(); ?>
    
    <!--Main content section-->
      <div id="primary">
    
         <div id="content" role="main">
    
    	<?php the_post(); ?>
    
    	<?php get_template_part( 'content', 'page' ); ?>
    
          </div><!-- #content -->
    
        </div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    
    <footer id="colophon" role="contentinfo">
    
            <?php
                /* A sidebar in the footer */
                get_sidebar( 'footer' );
            ?>
    
    </footer><!-- #colophon -->
    <?php get_footer(); ?>

    **************************************
    Child Template Main.php Code

    <?php
    function wp_additional_css()
    {
    wp_enqueue_style( ' style' , WP_CONTENT_DIR . ' /themes/960.css' );
    wp_enqueue_style(  'style' , WP_CONTENT_DIR . ' /themes/screen. css' );
    }
    add_action( ' wp_enqueue_scripts' , ' wp_additional_css' );
    
    get_header(); ?>
    
        <div id="primary">
           <div id="content" role="main">
    
    	  <?php the_post(); ?>
    
    	  <?php get_template_part( 'content', 'page' ); ?>
    
    	</div><!-- #content -->
    
        </div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)