This commit is contained in:
Holger 2015-08-13 14:15:57 +02:00
parent 756f21f414
commit a273294048
3 changed files with 9 additions and 3 deletions

View File

@ -29,7 +29,7 @@ function understrap_widgets_init() {
'before_title' => '', 'before_title' => '',
'after_title' => '', 'after_title' => '',
) ); ) );
/*
register_sidebar( array( register_sidebar( array(
'name' => __( 'Off Canvas', 'understrap' ), 'name' => __( 'Off Canvas', 'understrap' ),
'id' => 'off-canvas', 'id' => 'off-canvas',
@ -38,6 +38,6 @@ function understrap_widgets_init() {
'after_widget' => '</div>', 'after_widget' => '</div>',
'before_title' => '', 'before_title' => '',
'after_title' => '', 'after_title' => '',
) );*/ ) );
} }
add_action( 'widgets_init', 'understrap_widgets_init' ); add_action( 'widgets_init', 'understrap_widgets_init' );

View File

@ -17,7 +17,6 @@ get_header(); ?>
<?php get_template_part('statichero'); ?> <?php get_template_part('statichero'); ?>
<div class="wrapper" id="wrapper-index"> <div class="wrapper" id="wrapper-index">
<div class="container"> <div class="container">

View File

@ -1,13 +1,20 @@
<?php if ( is_active_sidebar( 'statichero' ) ): ?> <?php if ( is_active_sidebar( 'statichero' ) ): ?>
<!-- ******************* The Hero Widget Area ******************* --> <!-- ******************* The Hero Widget Area ******************* -->
<div class="wrapper" id="wrapper-statichero"> <div class="wrapper" id="wrapper-statichero">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<?php dynamic_sidebar( 'statichero' ); ?> <?php dynamic_sidebar( 'statichero' ); ?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php else : ?> <?php else : ?>