footer sidebar start
This commit is contained in:
parent
bdc22c7ad4
commit
35e279dd56
@ -1,3 +1,4 @@
|
||||
<footer class="container">
|
||||
<?php ildi_nav('social-menu'); ?>
|
||||
<?php get_sidebar('footer-sponsors'); ?>
|
||||
</footer>
|
||||
|
@ -59,8 +59,22 @@ function register_ildi_menus() {
|
||||
));
|
||||
}
|
||||
|
||||
function ildi_register_sidebars() {
|
||||
register_sidebar(
|
||||
array(
|
||||
'id' => 'footer-sponsors',
|
||||
'name' => __( 'Footer Sponsors', 'ildi' ),
|
||||
'description' => __( 'This is the sponsor and partner logos section of the footer.', 'ildi' ),
|
||||
'before_widget' => '<section class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h1>',
|
||||
'after_title' => '</h1>',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// add_action('init', 'register_ildi_menu');
|
||||
add_action( 'after_setup_theme', 'register_ildi_menus', 0 );
|
||||
add_action( 'wp_enqueue_scripts', 'ildi_styles' );
|
||||
add_action( 'widgets_init', 'ildi_register_sidebars');
|
||||
?>
|
||||
|
@ -29,7 +29,6 @@
|
||||
|
||||
</main>
|
||||
|
||||
<?php // get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
5
sidebar-footer-sponsors.php
Normal file
5
sidebar-footer-sponsors.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php if( is_active_sidebar('footer-sponsors') ) : ?>
|
||||
<div class="sponsors">
|
||||
<?php dynamic_sidebar( 'footer-sponsors' ); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue
Block a user