replacing slider
This commit is contained in:
parent
7148f4f7b7
commit
af1bedb6bb
|
@ -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' => '',
|
||||
|
|
|
@ -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; ?>
|
||||
|
|
Reference in New Issue