以下のコードでjqueryのslickが読み込める認識なのですが、どこか間違っていますでしょうか?
【やりたいこと】
ヘッダー画像、もしくはバックグラウンドカラーにスライダーを設置して切り替えたい
html
1<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>"/> 2<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 3<script src="<?php get_template_directory_uri();?>/js/slick.min.js"></script> 4<script src="<?php get_template_directory_uri(); ?>/js/jquery.js"></script> 5 6<省略> 7<section id="branding"> 8 <div class="headSlider"> 9 <div><img src="<?php bloginfo('template_url'); ?>/images/header/default.png" alt="" /></div> 10 <div><img src="<?php bloginfo('template_url'); ?>/images/header/default.png" alt="" /></div> 11 <div><img src="<?php bloginfo('template_url'); ?>/images/header/default.png" alt="" /></div> 12 </div> 13</section><!-- #branding end --> 14 15<省略> 16 17<script type="text/javascript"> 18$(function() { 19 $('.headSlider').slick(); 20}); 21</script> 22 23 24
回答1件
あなたの回答
tips
プレビュー