CSS更改未在Joomla网站中反映出来

时间:2022-03-24 19:55:46

I have a site built around Joomla, It was working fine from the time it was built. But from few days back the css changes in any of the css files are not reflecting in the site. I am able to see all the other UI changes except CSS. I have cleared he cache and checked from different ISP but no result. Can anyone suggest me how to resolve this. Thanks in advance.

我有一个围绕Joomla建立的网站,它从建立之日起运作良好。但是从几天前开始,任何css文件中的css更改都没有反映在网站中。我能够看到除CSS之外的所有其他UI更改。我已经清除了他的缓存并从不同的ISP检查但没有结果。任何人都可以建议我如何解决这个问题。提前致谢。

2 个解决方案

#1


0  

I think you are using a Template which uses LESS instead of CSS. If so, see if there are any folder inside "/public_html/templates/your_template/less/" exists or not.

我认为你使用的是一个使用LESS而不是CSS的模板。如果是,请查看“/ public_html / templates / your_template / less /”中是否存在任何文件夹。

If it exists then you have to create (if it is already not there) a css file named "custom.css"

如果它存在,那么你必须创建一个名为“custom.css”的css文件(如果它已经不存在)

inside "/public_html/templates/your_template/css/" folder and write your CSS code inside this file.

在“/ public_html / templates / your_template / css /”文件夹中,将CSS代码写入此文件。

Joomla will pickup this "custom.css" file at last and your changes will be reflected.

Joomla最终将获取此“custom.css”文件,您的更改将被反映出来。

#2


0  

Sorry for late reply but I found the answer. It is due to enabling CloudFlare in my hosting account. When I reached to my Hosting support they disabled the CloudFlare and everything started working fine and I am able to see all the CSS changes.

很抱歉迟到的回复,但我找到了答案。这是因为我的托管帐户启用了CloudFlare。当我到达我的托管支持时,他们禁用了CloudFlare,一切都开始正常工作,我能够看到所有CSS更改。

#1


0  

I think you are using a Template which uses LESS instead of CSS. If so, see if there are any folder inside "/public_html/templates/your_template/less/" exists or not.

我认为你使用的是一个使用LESS而不是CSS的模板。如果是,请查看“/ public_html / templates / your_template / less /”中是否存在任何文件夹。

If it exists then you have to create (if it is already not there) a css file named "custom.css"

如果它存在,那么你必须创建一个名为“custom.css”的css文件(如果它已经不存在)

inside "/public_html/templates/your_template/css/" folder and write your CSS code inside this file.

在“/ public_html / templates / your_template / css /”文件夹中,将CSS代码写入此文件。

Joomla will pickup this "custom.css" file at last and your changes will be reflected.

Joomla最终将获取此“custom.css”文件,您的更改将被反映出来。

#2


0  

Sorry for late reply but I found the answer. It is due to enabling CloudFlare in my hosting account. When I reached to my Hosting support they disabled the CloudFlare and everything started working fine and I am able to see all the CSS changes.

很抱歉迟到的回复,但我找到了答案。这是因为我的托管帐户启用了CloudFlare。当我到达我的托管支持时,他们禁用了CloudFlare,一切都开始正常工作,我能够看到所有CSS更改。