Bitte jemand helfen kann Ich habe versucht, drei Arten von Karussells zu implementieren und nichts funktioniert:Shopify Karussells, Eule, Schieber, ResponsiveSlides
http://owlgraphic.com/owlcarousel/
Nichts funktioniert Ich habe das JS und CSS wie folgt hinzugefügt:
<!-- CSS ================================================== -->
{{ 'timber.scss.css' | asset_url | stylesheet_tag }}
{{ 'theme.scss.css' | asset_url | stylesheet_tag }}
{{ 'index.css' | asset_url | stylesheet_tag }}
{{ 'owl.css' | asset_url | stylesheet_tag }}
{{ 'scoot-baby.css' | asset_url | stylesheet_tag }}
<!-- JS ================================================== -->
{{ 'jquery-1.9.1.min.js' | asset_url | script_tag }}
{{ 'owl.carousel.js' | asset_url | script_tag }}
Dann wird der HTML-Code mit dem JS auf der Homepage wie folgt aus:
<div id="owl-demo" class="owl-carousel owl-theme">
<div class="item"><img src="https://cdn.shopify.com/s/files/1/1334/7245/t/1/assets/fullimage1.jpg?15259394755119812233" alt="The Last of us"></div>
<div class="item"><img src="https://cdn.shopify.com/s/files/1/1334/7245/t/1/assets/fullimage2.jpg?15259394755119812233" alt="GTA V"></div>
<div class="item"><img src="https://cdn.shopify.com/s/files/1/1334/7245/t/1/assets/fullimage3.jpg?15259394755119812233" alt="Mirror Edge"></div>
</div>
<style>
#owl-demo .item img{
display: block;
width: 100%;
height: auto;
}
</style>
<script>
jQuery.noConflict();
$(document).ready(function() {
$("#owl-demo").owlCarousel({
navigation : true,
slideSpeed : 300,
paginationSpeed : 400,
singleItem : true
// "singleItem:true" is a shortcut for:
// items : 1,
// itemsDesktop : false,
// itemsDesktopSmall : false,
// itemsTablet: false,
// itemsMobile : false
});
});
</script>
Nichts nichts funktioniert, fand ich dies auf Stackoverflow
Owl Carousel: Javascript won't load. Shopify Issue or Code Issue?
Nichts funktioniert so fand ich diese auf dem Shopify Forum
https://ecommerce.shopify.com/c/ecommerce-design/t/how-to-use-owl-carousel-for-blog-355756
Nichts funktioniert, p Leasing kann jemand helfen?
Dank
Dank @NickTheWrench nur das tat, aber es nicht – jelly46
funktioniert Ich habe gerade Ihren genauen Code in das kopierte [JSFiddle] (https://jsfiddle.net/y2r2sp5v/) und es funktioniert. Ich bin mir also nicht sicher, was ich sonst noch sagen soll, es sei denn, Sie können mehr Details angeben. Sind Sie sicher, dass jQuery und owl.carousel.js ordnungsgemäß auf der Seite geladen werden? – NickyTheWrench
Ja, und das hat gut funktioniert, aber in shopify weiß ich nicht, warum es nicht funktioniert. – jelly46