Show widgets below nav bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • #20575
    hankyknot
    Participant

    I’ve managed-ish to center my nav bar and would like to have some widgets appear below the nav bar. However the widget area is above the nav bar. How do I move it?

    #20578
    sneeux
    Participant

    edit the Footer (footer.php) this way:
    (which only change the position of <?php get_sidebar( ‘footer’ ); ?>)

    <?php
    /**
    * The footer Template
    *
    * @package WordPress
    * @subpackage minimatica
    * @since Minimatica 1.0
    */
    ?>
    <footer id=”footer”>
    <nav id=”access” role=”navigation”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary_nav’, ‘container_id’ => ‘primary-nav’, ‘container_class’ => ‘nav’, ‘fallback_cb’ => ‘minimatica_nav_menu’ ) ); ?>
    </nav><!– #access –>
    <?php get_sidebar( ‘footer’ ); ?>
    </footer><!– #footer –>
    </div><!– #wrapper –>
    <?php wp_footer(); ?>
    </body>
    </html>

    #20579
    hankyknot
    Participant

    I replaced the old Footer content shown below under OLD with that shown under NEW and lost my nav bar completely and the background also glitched slightly. What did I do wrong?

    NEW
    <?php
    /**
     * The footer Template
     *
     * @package WordPress
     * @subpackage minimatica
     * @since Minimatica 1.0
     */
     ?>
                    <footer id="footer">
                             <nav id="access" role="navigation">
                                    <?php wp_nav_menu( array( 'theme_location'  => 'primary_nav', 'container_id' => 'primary-nav', 'container_class' => 'nav', 'fallback_cb' => 'minimatica_nav_menu' ) ); ?>
                            </nav><!-- #access -->
                    <?php get_sidebar( 'footer' ); ?>
                    </footer><!-- #footer -->
            </div><!-- #wrapper -->
            <?php wp_footer(); ?>
    </body>
    </html>
    
    OLD
    <?php
    /**
     * The footer Template
     *
     * @package WordPress
     * @subpackage minimatica
     * @since Minimatica 1.0
     */
     ?>
     		<footer id="footer">
    			<?php get_sidebar( 'footer' ); ?>
     			<nav id="access" role="navigation">
     				<?php wp_nav_menu( array( 'theme_location'  => 'primary_nav', 'container_id' => 'primary-nav', 'container_class' => 'nav', 'fallback_cb' => 'minimatica_nav_menu' ) ); ?>
    			</nav><!-- #access -->
    		</footer><!-- #footer -->
    	</div><!-- #wrapper -->
    	<?php wp_footer(); ?>
    </body>
    </html>
    #20580
    hankyknot
    Participant

    Ok, so I figured it out, looks like when I copied the code from the email its replaced the < and > characters with some kind of code, once I corrected those the navbar came back and the background alinment returned to where it started. Now to test the widgets.

    Thanks for your help sneeux πŸ™‚

    #20581
    sneeux
    Participant

    actually all what you had to do, was to move
    <?php get_sidebar( ‘footer’ ); ?>

    in between

    </nav><!– #access –>

    and

    </footer><!– #footer –>

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.