W
W
Worddoc2017-07-04 20:41:01
JavaScript
Worddoc, 2017-07-04 20:41:01

How to create block inside OwlCarousel but not .item?

Hello. Such a problem: if I create a block inside the owlCarousel carousel, it automatically turns it into a slider and gives it the appropriate classes. From this it turns out that my first slide is empty. And I don't need it at all.
How can I create a block inside the carousel so that Owl doesn't treat it as a slide? In this case, I need to cram the h3 block. Thank you.

<div id="owl-carousel2" class="owl-carousel owl-theme">
    <h3>Акции</h3>
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leshiy66613, 2017-07-04
@Leshiy66613

Apparently, no way, it is unlikely that a situation may arise here that this h3 is so ironically necessary to keep in this block.
Make a wrapper for the carousel and the title is already in it

<div class="holder">
 <h3>Акции</h3>
<div id="owl-carousel2" class="owl-carousel owl-theme">
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
    <div class="item">
      <p>«Эталон – мой выбор»<br/>1% скидка за видеоотзыв!</p>
    </div>
  </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question