replacing slider

This commit is contained in:
Holger Könemann 2017-01-24 18:30:57 +01:00
parent 7148f4f7b7
commit af1bedb6bb
2 changed files with 15 additions and 3 deletions

View File

@ -71,7 +71,7 @@ if ( ! function_exists( 'understrap_widgets_init' ) ) {
'name' => __( 'Hero Slider', 'understrap' ),
'id' => 'hero',
'description' => 'Hero slider area. Place two or more widgets here and they will slide!',
'before_widget' => '<div class="item">',
'before_widget' => '<div class="carousel-item">',
'after_widget' => '</div>',
'before_title' => '',
'after_title' => '',

View File

@ -11,11 +11,23 @@
<!-- ******************* The Hero Widget Area ******************* -->
<div class="owl-carousel">
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<?php dynamic_sidebar( 'hero' ); ?>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div><!-- .owl-carousel -->
</div><!-- closing owl carousel -->
<?php endif; ?>