owl carousel und Bootstrap
-
Hi leute ich versuche owl carousel und Bootstrap in der functions.php zu integrieren, aber owl carousel will nicht funtionieren
function my_scripts() { wp_enqueue_style('bootstrap4', 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css'); wp_enqueue_script( 'boot1','https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot2','https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js', array( 'jquery' ),'',true ); wp_enqueue_script( 'boot3','https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js', array( 'jquery' ),'',true ); } add_action( 'wp_enqueue_scripts', 'my_scripts' ); function loadup_scripts() { wp_enqueue_script( 'respondjs', get_template_directory_uri() . 'js/respond.min.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'scriptjs', get_template_directory_uri() . 'js/script.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'owl-carousel', get_template_directory_uri() . 'js/owl.carousel.min.js', array( 'jquery' ), '', true ); wp_enqueue_style( 'owl-style-min', get_stylesheet_directory_uri() . 'css/owl.carousel.min.css' ); wp_enqueue_style( 'owl-style-def', get_stylesheet_directory_uri() . 'css/owl.theme.default.min.css' ); } add_action( 'wp_enqueue_scripts', 'loadup_scripts' );
Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]
Ansicht von 4 Antworten – 1 bis 4 (von insgesamt 4)
Ansicht von 4 Antworten – 1 bis 4 (von insgesamt 4)
- Das Thema „owl carousel und Bootstrap“ ist für neue Antworten geschlossen.