バージョン選択

フォーラム

メニュー

オンライン状況

56 人のユーザが現在オンラインです。 (46 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 56
もっと...

サイト内検索

質問 > その他 > /default/index.twig を触ったらTOPページが表示されなくなった

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
K1.N
投稿日時: 2022/10/10 13:53
対応状況: 解決済
新米
登録日: 2022/10/10
居住地:
投稿: 3
/default/index.twig を触ったらTOPページが表示されなくなった
▼テンプレート
[EC-CUBE] 4.1.2
[導入プラグインの有無] なし
[カスタマイズの有無] 無
[現象]
app/template/default/index.twig を書き換えしたら、TOPページが表示されない(真っ白)ようになってしまいました。
元の状態に直そうしたいのですが、下記の内にしても直りません。間違っているでしょうか。



{% set body_class = 'front_page' %}

{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 30px;
}

.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}

.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;

cursor: pointer;
}

.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}

.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}

.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}

.slick-dots li button:before {
content: " ";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;

}

.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}

.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
</style>
{% endblock %}

{% block javascript %}
<script>
$(function() {
$('.main_visual').slick({
dots: true,
arrows: false,
autoplay: true,
speed: 300
});
});
</script>
{% endblock javascript %}

{% block main %}

{% endblock %}
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » /default/index.twig を触ったらTOPページが表示されなくなった K1.N 2022/10/10 13:53
     Re: /default/index.twig を触ったらTOPページが表示されなくなった mcontact 2022/10/10 14:46
       Re: /default/index.twig を触ったらTOPページが表示されなくなった K1.N 2022/10/10 15:02
     Re: /default/index.twig を触ったらTOPページが表示されなくなった yt1969 2022/10/10 14:48
       Re: /default/index.twig を触ったらTOPページが表示されなくなった K1.N 2022/10/10 14:59

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,887名です
総投稿数は110,000件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1295
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.