WordPress.org

Ready to get started?Download WordPress

Forums

Tuesday
Footer Widgets Disappear with Static Front Page (2 posts)

  1. midawnpatrol
    Member
    Posted 12 months ago #

    Hi, I really like your theme for it's clean look. The integration of Google fonts is another great feature. One problem I am having is that I would like to have static front page and also use the footer widget areas. Whenever I change to a static front page the footer widget areas disappear. I've tried using plugins such Widget Context, Widget Logic, etc and still can't get the footer widget areas to appear. Can you help? Thanks!

  2. lolenik
    Member
    Posted 5 months ago #

    Although this is old, I did find a solution, though not an optimal one because I don't like to edit theme files, but, hey, it worked and it was easy. For me, the blog posts showed the footer widgets, but not the pages. I edited the footer.php file by changing this:

    <?php if ( !is_singular()): ?>
    		<div class="footer-widget-section">
    			<?php if ( ! dynamic_sidebar( 'footer-1' ) ) : ?>
    			<?php endif; ?>
    			<?php if ( ! dynamic_sidebar( 'footer-2' ) ) : ?>
    			<?php endif; ?>
    			<?php if ( ! dynamic_sidebar( 'footer-3' ) ) : ?>
    			<?php endif; ?>
    		</div>
          <?php endif; ?>

    to this:

    <?php //if ( !is_singular()): ?>
    		<div class="footer-widget-section">
    			<?php if ( ! dynamic_sidebar( 'footer-1' ) ) : ?>
    			<?php endif; ?>
    			<?php if ( ! dynamic_sidebar( 'footer-2' ) ) : ?>
    			<?php endif; ?>
    			<?php if ( ! dynamic_sidebar( 'footer-3' ) ) : ?>
    			<?php endif; ?>
    		</div>
          <?php //endif; ?>

    In case it's not obvious, I commented out the if ( !is_singular()): bit and it's corresponding endif

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.