Re: 「レイアウトを追加」ができません。

2014年11月20日 at 9:02

お世話になります。

昨日のエラーを見直して、
Bootstrapテーマ内のscript.jsに以下のコードがあったため、全部抜いてみたら動きました!
ーーーーーーーーーーーーーー
smoothScroll: function() {
// Smooth Scrolling
$('a[href*=#]:not([href=#carousel-example-generic])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {

var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
},

〜略〜
appMaster.smoothScroll();
ーーーーーーーーーーーーーー

今はこれで学習を進めていこうと思います。

アドバイスをありがとうございました<m(. _ .)m>

解決しました!

2014年11月20日 at 10:14
コードを変更したら、抜かなくても使えるようになりました!

変更前
a[href*=#]:not([href=#carousel-example-generic])
変更後
a:not([href="#"])

もっと勉強します!ありがとうございました!!
 

Re: 「レイアウトを追加」ができません。

2014年11月20日 at 16:32
jQueryの書き方が原因だったみたいですね。解決してよかったです grin
 

Re: 「レイアウトを追加」ができません。

2014年11月20日 at 16:50
はい!
アドバイスありがとうございました!

まだまだ知識が足りないので、
あれこれ勉強しながら進めていきます><;

これからもまた何かあるかもしれません。
その時はどうかよろしくお願いしますm(__)m