WordPress网站仍在加载旧的style.css [英] WordPress website still loading old style.css

查看:143
本文介绍了WordPress网站仍在加载旧的style.css的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对style.css进行了更改,但wordpress网站仍显示旧内容。我检查了FTP中的文件,并且文件中的更改已存在,但未在网站上显示。我没有任何WP缓存插件。我还删除了浏览器中的缓存,并通过Ctrl + F5强制刷新。

I have made changes to style.css but the wordpress website is still showing old contents. I checked the file in FTP, and the changes in the file are there, but it's not showing on the website. I don't have any WP cache plugins. I also deleted cache in my browser and forces cache refresh through Ctrl+F5.

:((

推荐答案

尝试更改style.css文件的版本
如果通过在标头中提供路径来包含版本,则尝试将版本附加为

Try changing the version of the style.css file If included by giving the path in header then try to append version as

<link style ........ href="...../style.css?v=1.5"... /> 

请注意?v = 1.5表示版本

note the ?v=1.5 indicates the version

如果是样式.css已自动加载,然后打开您的style.css文件并添加/更改版本,如下所示:

if style.css is auto loaded then open your style.css file and add/change version as below:

/*
Theme Name: yourthemename
Theme URI: yoururl
Author: Vantage Tel
Version: 1.5 
.
.
.
*/

//更改此版本并上传文件
尝试按Ctrl + F5刷新页面一次。

//change this version and upload file try pressing Ctrl+F5 to refresh your page once..

这篇关于WordPress网站仍在加载旧的style.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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