wordpress footer menu code example
Example: what add in footer-menus-widgets.php
/* add in footer-menus-widgets.php */
<?php if ( $has_sidebar_1 || $has_sidebar_2 || $has_sidebar_3 || $has_sidebar_4 ) { ?>
<aside class="footer-widgets-outer-wrapper" role="complementary">
<div class="footer-widgets-wrapper">
<?php if ( $has_sidebar_1 ) { ?>
<div class="footer-widgets column-one grid-item">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div>
<?php } ?>
<?php if ( $has_sidebar_2 ) { ?>
<div class="footer-widgets column-two grid-item">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div>
<?php } ?>
<?php if ( $has_sidebar_3 ) { ?>
<div class="footer-widgets column-three grid-item">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div>
<?php } ?>
<?php if ( $has_sidebar_4 ) { ?>
<div class="footer-widgets column-four grid-item">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</div>
<?php } ?>
</div>
</aside>
<?php } ?>
/* add in functions.php */
register_sidebar( array(
'name' => 'Footer #3',
'id' => 'sidebar-3',
'description' => 'Appears in footer area',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => 'Footer #4',
'id' => 'sidebar-4',
'description' => 'Appppears in footer area',
'before_widget' => '<div id=%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
/* end ****************/