• 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="https://www.www.remarpro.com">Wordpress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="https://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!

Viewing 15 replies - 1 through 15 (of 19 total)
  • 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

    Thread Starter apaniagua

    (@apaniagua)

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

    hmmm….next thing I guess….take alook at this tutorial:
    https://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?)

    Thread Starter apaniagua

    (@apaniagua)

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

    <?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

    Thread Starter apaniagua

    (@apaniagua)

    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?

    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……

    Thread Starter apaniagua

    (@apaniagua)

    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' );
    
    ?>

    sweet! good catch!

    Thread Starter apaniagua

    (@apaniagua)

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

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

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

    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.

    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="https://www.www.remarpro.com">Wordpress</a>. <?php _e('Designed by', 'woothemes') ?> <a href="https://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>

    I meant: I changed I the footer.php…

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Headlines Theme Footer’ is closed to new replies.