我是 Prestashop 的新手。我想覆盖模块的 CSS 文件,比如 blockpermanentlinks
.
官方documentation说我必须将新的 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 文件,则会显示“找不到页面”。
有什么提示吗?
最佳答案
您似乎已经回答了自己的问题。说明是将您的 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" />
如果没有指向您网站的链接,就很难再说什么了。
关于css - Prestashop 模块的 CSS 覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15343000/