0

Prestashop を初めて使用します。モジュールのCSSファイルをオーバーライドしたいblockpermanentlinks. 公式ドキュメントによると、新しい CSS ファイルを に配置する必要があります /themes/my_theme/css/modules/my_module/my_module.css

うまくいきません。この線

<link href="/prestashop/themes/my_theme/css/modules/blockpermanentlinks/blockpermanentlinks.css" rel="stylesheet" type="text/css" media="all" />

生成されますが、ブラウザでその CSS ファイルにアクセスすると、「ページが見つかりません」と表示されます。

ヒントはありますか?

4

4 に答える 4

3

あなた自身の質問に答えたようです。指示は、CSSファイルを配置することでした

/themes/my_theme/...

そして、あなたはそれにリンクしました

/prestashop/themes/my_theme/...

試す

<link href="/themes/my_theme/css/modules/blockpermanentlinks/blockpermanentlinks.css" rel="stylesheet" type="text/css" media="all" />

あなたのサイトへのリンクがなければ、それ以上のことは言えません。

于 2013-03-11T16:27:41.003 に答える
0

一部のセレクター/プロパティのみをオーバーライドする必要がある場合は、次の場所に custom.css ファイルを作成できます。

/themes/my_theme/css/autoload/custom.css

css ファイル全体をオーバーライドする代わりに

于 2016-03-02T09:35:40.070 に答える
0

Try this path:

/themes/my_theme/css/modules/blockpermanentlinks/blockpermanentlinks.css

delete /cache/class_index.php and make sure to turn on the option from admin as Force Compilation, I hope this will solve your issue.

于 2014-06-06T15:13:26.580 に答える
0

モジュールの CSS ファイルをオーバーライドできます。

/themes/{your_theme}/blockpermanentlinks/css/blockpermanentlinks.css に移動します

于 2014-02-25T19:05:10.747 に答える