WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Footer Include Problems with Theme Templates

[Resolved] Footer Include Problems with Theme Templates

  • lzinssmeister
    Member

    @lzinssmeister

    I have a custom theme I built awhile back for this site:
    http://everaftereventsco.com/
    Things were running smoothly until we upgraded to ver 3.4.1.

    At that point, the home page and the blog page both dropped the footer include for the template and in the case of the home page, also seems to have dropped the sidebar include.

    I’ve tried the master list of things to try and fix the issue. With no success.

    When I tried to swap to the ‘Twenty-Eleven’ theme I was having the same issue with the footer not being included. And can’t for the life of me figure out what that means πŸ™

    I also seem to be the only person having this issue… so it probably means I’m missing something obvious. (whomp whomp)

    Would anyone be willing to point me in the right direction??? πŸ˜€ πŸ˜€

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • lzinssmeister
    Member

    @lzinssmeister

    So… some additional information I’ve managed to figure out…
    It seems to have something to do with the blog post code. It also explains why my static pages are working just fine.

    Perhaps something changed on that with the upgrade that I missed?

    Gonna tackle the problem some more tomorrow. Still looking for any insights to this, if anyone has any πŸ˜€

    Code for one of the two problem templates is below:

    <?php
    /**
     * Template Name: Home Page Template
     * Description: 2 column layout with right sidebar.
     *
     * @package WordPress
     * @subpackage everafterevents
     */
    
    get_header(); ?>
    
    		<div id="primary" class="standard">
    			<div id="content" role="main">
    
    				<?php the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<hr/>
    
    				<div id="latest_news">
    					<article>
    						<header class="entry-header">
    							<h1 class="entry-title">Latest News</h1>
    						</header>
    						<?php query_posts('showposts=1'); ?>
    
    						<?php while (have_posts()) : the_post(); ?>
    						<div class="post-date">
    							<span class="post-month"><?php the_time(M); ?></span>
    							<span class="post-day"><?php the_time(j); ?></span>
    						</div>
    						<div class="entry-content">
    						<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    						<?php the_content_limit(250); ?> <a href="<?php the_permalink() ?>">Read More…</a>
    						</div>
    						<?php endwhile;?>
    					</article>
    				</div><!-- #latest news -->
    
    			</div><!-- #content -->
    
    		</div><!-- #primary -->
    <?php get_sidebar('standard'); ?>
    <?php get_footer(); ?>
    Mukesh Panchal
    Participant

    @mukesh27

    <?php get_sidebar(‘standard’); ?>
    wy u put this

    Mukesh Panchal
    Participant

    @mukesh27

    check footer page
    give code

    lzinssmeister
    Member

    @lzinssmeister

    It’s been awhile since I put this together, but I believe the <?php get_sidebar(‘standard’); ?> should be pulling a secondary sidebar that’s different than the one being defined in sidebar.php.

    footer.php is below:

    <?php
    /**
     * @package WordPress
     * @subpackage everafterevents
     */
    ?>
    
    	</div><!-- #main -->
    	<div class="clear"></div>
    	</div><!-- #wrap -->
    
    	<footer id="colophon" role="contentinfo">
    			<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			<p>Β© Ever After Events. All Rights Reserved. | phone: <a href="#">720.722.0414</a> | <a href="#">everaftereventsco@gmail.com</a></p>
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    Mukesh Panchal
    Participant

    @mukesh27

    check page view source code u have start one style and not close that style first close that style

    u get the result check

    regard

    lzinssmeister
    Member

    @lzinssmeister

    ah-ha! So it turns out that that’s part of the NextGen Gallery plugin I was using. So it looks like something is broken there. Thanks for the help mukesh panchal! πŸ˜€

    Mukesh Panchal
    Participant

    @mukesh27

    u solve problem

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Footer Include Problems with Theme Templates’ is closed to new replies.