WordPress.org

Ready to get started?Download WordPress

Forums

Headlines Theme Footer (20 posts)

  1. apaniagua
    Member
    Posted 4 years ago #

    I bought the Headlines Theme from Woo Themes, but they haven't answer or given me any help at all so far...

    THing is, the footer doesn't show any footer bar or widgets. The footer code is:

    <!-- Footer Starts -->
    	<div id="footer-wrap">
    	<div id="footer">
    
    	<?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar(3) || is_active_sidebar(4) || is_active_sidebar(5)) ) ) : ?>
    
    		<!-- Footer Widget Area Starts -->
    		<div class="footer-widgets">
    
    			<div class="block">
    				<?php dynamic_sidebar(3); ?>
    			</div>
    
    			<div class="block">
    				<?php dynamic_sidebar(4); ?>
    			</div>
    
    			<div class="block last">
    				<?php dynamic_sidebar(5); ?>
    			</div>
    
    		</div>
    		<!-- Footer Widget Area Ends -->
    
    		<div class="fix"></div>
    
    	<?php endif; ?>
    
    		<div id="credits">
    
    			<div id="copyright" class="col-left">
    				<p>&copy; <?php echo date('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.', 'woothemes') ?></p>
    			</div>
    
    			<div id="credit" class="col-right">
    				<p><?php _e('Powered by', 'woothemes') ?> <a href="http://www.wordpress.org">WordPress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="http://www.woothemes.com"><img src="<?php bloginfo('template_directory'); ?>/images/woothemes.png" width="87" height="21" alt="Woo Themes" /></a></p>
    			</div>
    
    		</div>
    
    	</div>
    	</div>
    	<!-- Footer Ends -->
    
    </div><!-- /#container -->
    <?php wp_footer(); ?>
    <?php if ( get_option('woo_google_analytics') <> "" ) { echo stripslashes(get_option('woo_google_analytics')); } ?>
    </body>
    </html>

    Yet, if you go to my website: you wont see it. And if you inspect the source, it wont even appear the footer at all!

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    It shows up...somewhat.....I can see the footer wrap portion, and the code in source. I can see the copyright stuff, and theme designed by: stuff. What doesn't show up is all the dynamic business. I'm guessing that is because you haven't set up any widgets? In appearance->widgets from your admin area, you have 3 'sidebars' to use...... widget areas.....set em up and see if it works

  3. apaniagua
    Member
    Posted 4 years ago #

    I have already set them up. There are 3 widgets activated and none appear in the footer...

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    hmmm....next thing I guess....take alook at this tutorial:
    http://www.themelab.com/2009/04/25/add-a-widgetized-footer-to-your-wordpress-theme/

    it shows how to add 3 widget areas to footer.....I guess I would compare the code in footer.php, functions.php and sidebar.php to make sure things look proper.....

    (You don't have any 'theme options' where you have to turn this feature on do ya?)

  5. apaniagua
    Member
    Posted 4 years ago #

    thing is....i dont have 3 "sidebars" i have 1 top sidebar, 1 sidebar and 3 FOOTERS...does that affects?

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    <?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar(3) || is_active_sidebar(4) || is_active_sidebar(5)) ) ) : ?>
    
    		<!-- Footer Widget Area Starts -->
    		<div class="footer-widgets">
    
    			<div class="block">
    				<?php dynamic_sidebar(3); ?>
    			</div>
    
    			<div class="block">
    				<?php dynamic_sidebar(4); ?>
    			</div>
    
    			<div class="block last">
    				<?php dynamic_sidebar(5); ?>
    			</div>

    this bit of code you pasted in your original post, from footer.php institutes 3 'sidebars' sidebar 3, sidebar 4, and sidebar 5.....the widget areas

  7. apaniagua
    Member
    Posted 4 years ago #

    I understand but on Appearance -> Widgets I dont have "Sidebar 3, 4 or 5...i only have Sidebar, Footer 1, Footer 2 and Footer 3...got it?

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    right....so Footer 1, Footer 2, Footer 3 ARE Sidebar 3, 4, 5 (or at least that was the authors intent I believe)

    That's why I was saying to check that tutorial against your code..... in your footer, and in functions.php, to see if things are set up properly.....if the footer 1,2,3 widgets are not working.....then there may be some discrepency in the coding......

  9. apaniagua
    Member
    Posted 4 years ago #

    Found the issue....on Footer.php appears as sidebars 3,4,5 but on sidebar-init.php appears like this:

    <?php
    
    // Register widgetized areas
    
    function the_widgets_init() {
        if ( !function_exists('register_sidebars') )
            return;
    
        register_sidebar(array('name' => 'Sidebar Top','id' => 'sidebar-top','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));
        register_sidebar(array('name' => 'Sidebar','id' => 'sidebar-1','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));
        register_sidebar(array('name' => 'Footer 1','id' => 'footer-1','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));
        register_sidebar(array('name' => 'Footer 2','id' => 'footer-2','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));
        register_sidebar(array('name' => 'Footer 3','id' => 'footer-3','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));
    }
    
    add_action( 'init', 'the_widgets_init' );
    
    ?>
  10. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    sweet! good catch!

  11. apaniagua
    Member
    Posted 4 years ago #

    still...lol, now it doesnt add it like 3 columns but rows haha...i dont get this..

  12. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    well....that's gotta do with your css I would guess.... just tweaking .block

    maybe adding display:inline or float:left or something......

  13. zcoleman
    Member
    Posted 4 years ago #

    I also have this theme and have the same issue. Can you let me know what you did to resolve it? Did you modify the footer.php code or the sidebar-init.php code?

    Thanks for your time.

  14. ajoull
    Member
    Posted 4 years ago #

    I the footer.php to this, and it works for me:

    <!-- Footer Starts -->
    	<div id="footer-wrap">
    		<div id="footer">
    
    		<?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3')) ) ) : ?>
    
                <!-- Footer Widget Area Starts -->
                <div id="footer-widgets">
    
                    <div class="container col-full">
                        <div class="block">
                        <?php dynamic_sidebar('footer-1'); ?>
                        </div>
                        <div class="block">
                        <?php dynamic_sidebar('footer-2'); ?>
                        </div>
                        <div class="block last">
                        <?php dynamic_sidebar('footer-3'); ?>
                        </div>
                        <div class="fix"></div>
                    </div>
                </div>
                <!-- Footer Widget Area Ends -->
    
    		<div class="fix"></div>
    
    	<?php endif; ?>
    
    		<div id="credits">
    
    			<div id="copyright" class="col-left">
    				<p>&copy; <?php echo date('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.', 'woothemes') ?></p>
    			</div>
    
    			<div id="credit" class="col-right">
    				<p><?php _e('Powered by', 'woothemes') ?> <a href="http://www.wordpress.org">WordPress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="http://www.woothemes.com"><img src="<?php bloginfo('template_directory'); ?>/images/woothemes.png" width="87" height="21" alt="Woo Themes" /></a></p>
    			</div>
    
    		</div>
    
    	</div>
    	</div>
    	<!-- Footer Ends -->
    
    </div><!-- /#container -->
    <?php wp_footer(); ?>
    <?php if ( get_option('woo_google_analytics') <> "" ) { echo stripslashes(get_option('woo_google_analytics')); } ?>
    </body>
    </html>
  15. ajoull
    Member
    Posted 4 years ago #

    I meant: I changed I the footer.php...

  16. ushiche
    Member
    Posted 4 years ago #

    You made my day ajoull!!! thanks a lot, it works perfectly! :)

  17. sparklyscotty
    Member
    Posted 3 years ago #

    Thanks so much for this fix ajoull!

  18. mikethedj4
    Member
    Posted 3 years ago #

    ajoull's code worked a little for me, however the top footer, where the widgets would be was inside the bottom part where, the copyright, and credit would be at. So here's my small fix to it!

    <!-- Footer Widget Area Starts -->
                <div id="footer-widgets">
    
    		<?php if ( ( function_exists('dynamic_sidebar') && (is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3')) ) ) : ?>
    
                    <div class="container col-full">
                        <div class="block">
                        <?php dynamic_sidebar('footer-1'); ?>
                        </div>
                        <div class="block">
                        <?php dynamic_sidebar('footer-2'); ?>
                        </div>
                        <div class="block last">
                        <?php dynamic_sidebar('footer-3'); ?>
                        </div>
                        <div class="fix"></div>
                    </div>
                </div>
                <!-- Footer Widget Area Ends -->
    
    		<div class="fix"></div>
    	<?php endif; ?>
    
    	<div id="footer">
    		<div class="col-full">
    
                <div id="copyright" class="col-left">
    		<p>© <?php echo date('Y'); ?> <?php bloginfo(); ?>. <?php _e('All Rights Reserved.', 'woothemes') ?></p>
                </div>
    
                <div id="credit" class="col-right">
    		<p><?php _e('Powered by', 'woothemes') ?> <a href="http://www.wordpress.org">WordPress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="http://www.woothemes.com"><img src="<?php bloginfo('template_directory'); ?>/images/woothemes.png" width="87" height="21" alt="Woo Themes" /></a></p>
    		</div>
    		</div>
    	</div>
    	<!-- footer Ends -->
    
    </div><!-- /#container -->
    <?php wp_footer(); ?>
    <?php if ( get_option('woo_google_analytics') <> "" ) { echo stripslashes(get_option('woo_google_analytics')); } ?>
    </body>
    </html>
  19. yashmistrey
    Member
    Posted 3 years ago #

    thanks the last code work really well, fine

    excellent friends, cheers

  20. yashmistrey
    Member
    Posted 3 years ago #

    can anyone tell me how to ad widget beweeen posts on index page

    for example see here Example

    search (ctrl+f) :'Popular Posts this Month' in this site you'll get there is an extra post with posts

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.