Prestashop模块的CSS覆盖 [英] Prestashop Module's CSS Override

查看:160
本文介绍了Prestashop模块的CSS覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Prestashop的新人。我想覆盖一个模块的CSS文件,例如 blockpermanentlinks
官方的文档说,我必须把新的在
/themes/my_theme/css/modules/my_module/my_module.css 中的CSS文件。



它不工作。



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



,但如果我使用浏览器访问该CSS文件

解决方案



似乎你已经回答了自己的问题。说明是将您的CSS文件放入

  / themes / my_theme / ... 



并且已在

连结到它。

  / prestashop / themes / my_theme / ... 

尝试

 < link href =/ themes / my_theme / css / modules / blockpermanentlinks / blockpermanentlinks.css =stylesheettype =text / cssmedia =all/> 

如果没有链接到您的网站,很难说什么。


I'm new to Prestashop. I want to override the CSS file of a module, say blockpermanentlinks. The official documentation says that I have to put the new CSS file in /themes/my_theme/css/modules/my_module/my_module.css.

It doesn't work. The line

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

is produced but if I visit that CSS file with my browser a 'Page not found' is displayed.

Any hints?

解决方案

Seems like you've answered your own question. The instructions were to put your CSS file in

/themes/my_theme/...

and you've linked to it at

/prestashop/themes/my_theme/...

Try

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

It's hard to say anything more without a link to your site.

这篇关于Prestashop模块的CSS覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆