• Resolved mcography

    (@mcography)


    Hi all. I am building a child theme based on the Reverie theme (which is built on Zurb’s Foundation). I’m having trouble figuring out how to get my footer to display properly. It isn’t displaying anywhere except the home page. It doesn’t show up on pages or posts, even though my templates included the proper php code (I think).

    This is the page template for my home page (where the footer is displaying properly):

    <?php
    /*
    Template Name: Home
    */
    get_header(); ?>
    
    <!-- Start the main container -->
    <div class="container" role="document">
    
    <!-- Row for main content area -->
    <div class="small-12 large-12 columns" id="content" role="main">
    
    	<?php /* Start loop */ ?>
    	<?php while (have_posts()) : the_post(); ?>
    		<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    		<!-- Sliders are included in header.php. -->
    
    		<!-- Row for Home First Widget-->
    			<?php if ( dynamic_sidebar('HomeFirst') ) : else : endif; ?>	
    
    		<!-- This is where the case studies go. -->
    
    		<!-- Row for Home Second Widget-->
    			<?php if ( dynamic_sidebar('HomeSecond') ) : else : endif; ?>	
    
    		<!-- This is where the content from the WordPress Home page editor goes. -->
    		<div class="row">
    		<div class="entry-content">
    			<?php the_content(); ?>
    		</div>
    		</div>
    
    		<!-- Row for Home Third Widget-->
    			<?php if ( dynamic_sidebar('HomeThird') ) : else : endif; ?>	
    
    		<!-- Row for Home Fourth Left Widget-->
    			<?php if ( dynamic_sidebar('HomeFourthLeft') ) : else : endif; ?>	
    
    		<!-- Row for Home Fourth Right Widget-->
    			<?php if ( dynamic_sidebar('HomeFourthRight') ) : else : endif; ?>	
    
    		<!-- Row for Home Fifth Right Widget-->
    			<?php if ( dynamic_sidebar('HomeFifth') ) : else : endif; ?>	
    
    		</article>
    	<?php endwhile; // End the loop ?>
    
    </div>
    
    <?php get_footer(); ?>

    And this is the code for a different page template (where the footer is not displaying at all):

    <?php
    /*
    Template Name: Full Width (No Sidebars)
    */
    get_header(); ?>
    
    <!-- Start the main container -->
    <div class="container" role="document">
    	<div class="row">
    
    <!-- Row for main content area -->
    	<div class="small-12 large-12 columns" id="content" role="main">
    
    	<?php /* Start loop */ ?>
    	<?php while (have_posts()) : the_post(); ?>
    		<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<header>
    				<h1 class="entry-title"><?php the_title(); ?></h1>
    				<?php reverie_entry_meta(); ?>
    			</header>
    			<div class="entry-content">
    				<?php the_content(); ?>
    			</div>
    		</article>
    	<?php endwhile; // End the loop ?>
    
    	</div>
    
    <?php get_footer(); ?>

    What am I doing wrong?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Footer Only Displaying on Home Page’ is closed to new replies.