adding full footer widget
This commit is contained in:
parent
677e2e15e5
commit
35dd6d1d2a
|
@ -8,6 +8,8 @@
|
|||
*/
|
||||
?>
|
||||
|
||||
<?php get_template_part('widget-templates/footerfull'); ?>
|
||||
|
||||
<div class="wrapper" id="wrapper-footer">
|
||||
|
||||
<div class="container">
|
||||
|
|
|
@ -17,7 +17,7 @@ function understrap_widgets_init() {
|
|||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Slider Hero', 'understrap' ),
|
||||
'name' => __( 'Hero Slider', 'understrap' ),
|
||||
'id' => 'hero',
|
||||
'description' => '',
|
||||
'before_widget' => '<div class="item">',
|
||||
|
@ -27,7 +27,7 @@ function understrap_widgets_init() {
|
|||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Static Hero', 'understrap' ),
|
||||
'name' => __( 'Hero Static', 'understrap' ),
|
||||
'id' => 'statichero',
|
||||
'description' => '',
|
||||
'before_widget' => '',
|
||||
|
@ -36,5 +36,15 @@ function understrap_widgets_init() {
|
|||
'after_title' => '',
|
||||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => __( 'Footer Full', 'understrap' ),
|
||||
'id' => 'footerfull',
|
||||
'description' => '',
|
||||
'before_widget' => '',
|
||||
'after_widget' => '',
|
||||
'before_title' => '',
|
||||
'after_title' => '',
|
||||
) );
|
||||
|
||||
}
|
||||
add_action( 'widgets_init', 'understrap_widgets_init' );
|
|
@ -13,9 +13,9 @@
|
|||
|
||||
get_header(); ?>
|
||||
|
||||
<?php get_template_part('hero'); ?>
|
||||
<?php get_template_part('widget-templates/hero'); ?>
|
||||
|
||||
<?php get_template_part('statichero'); ?>
|
||||
<?php get_template_part('widget-templates/statichero'); ?>
|
||||
|
||||
<div class="wrapper" id="wrapper-index">
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<?php if ( is_active_sidebar( 'footerfull' ) ): ?>
|
||||
|
||||
<!-- ******************* The Hero Widget Area ******************* -->
|
||||
|
||||
<div class="wrapper" id="wrapper-footer-full">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
|
||||
<?php dynamic_sidebar( 'footerfull' ); ?>
|
||||
|
||||
</div><!-- .col-md-12 -->
|
||||
|
||||
</div><!-- .row -->
|
||||
|
||||
</div><!-- .container -->
|
||||
|
||||
</div><!-- #wrapper-footer-full -->
|
||||
|
||||
<?php endif; ?>
|
Reference in New Issue