B
B
BaJar2018-02-10 14:22:34
css
BaJar, 2018-02-10 14:22:34

Owl-carousel not connecting?

Doesn't want to connect

<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700&amp;subset=cyrillic" rel="stylesheet">
    <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/stylesheet.css">
    <!-- Owl carousel-->
    <link rel="stylesheet" href="css/owl.carousel.min.css">
    <link rel="stylesheet" href="css/owl.theme.default.css">

<section id="training" class="training">
    <div class="container">
      <div class="owl-carousel owl-theme">
          <div> Контент </div>
          <div> Контент </div>
          <div> Контент </div>
          <div> Контент </div>
          <div> Контент </div>
          <div> Контент </div>
          <div> Контент </div>
      </div>
    </div>
  </section>

<script src="jquery-3.1.1.min.js"></script>
  	<script src="js/owl.carousel.min.js"></script>
  <script>$(document).ready(function(){
$('.owl-carousel').owlCarousel();
});</script>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IIIu6ko, 2018-02-10
@BaJar

Check the path again. I
just connected it, everything works.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="OwlCarousel2-2.2.1/dist/assets/owl.carousel.css">
  <link rel="stylesheet" href="OwlCarousel2-2.2.1/dist/assets/owl.theme.default.css">
</head>
<body>
  <div class="owl-carousel">
    <div> Your Content </div>
    <div> Your Content </div>
    <div> Your Content </div>
    <div> Your Content </div>
    <div> Your Content </div>
    <div> Your Content </div>
    <div> Your Content </div>
  </div>

  <script src="jquery-3.3.1.min.js"></script>
  <script src="OwlCarousel2-2.2.1/dist/owl.carousel.js"></script>
  <script>
    $(".owl-carousel").owlCarousel();
  </script>
</body>
</html>

The structure is like this:
e3sVK2UUQtC-z-OMyc17Mg.jpeg

B
BaJar, 2018-02-10
@BaJar

<script>
    $(document).ready(function(){
    $('.owl-carousel').owlCarousel();
    });
  </script>

I made it pretty and it all worked + I didn’t register the JS folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question