質問 > その他 > /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 |