wordpress style.css 不生效 缓存 cache问题
来源:互联网 发布:行业利润率算法 编辑:程序博客网 时间:2024/05/22 00:44
I had the same problem and I fixed it in another way than the default.
First I located the file that I need to change:
wp-includes\theme.php
There is a function called get_stylesheet_uri
My function looks like this:
function get_stylesheet_uri() { $time = time(); $stylesheet_dir_uri = get_stylesheet_directory_uri(); $stylesheet_uri = $stylesheet_dir_uri . '/style.css?v='.$time; /** * Filter the URI of the current theme stylesheet. * * @since 1.5.0 * * @param string $stylesheet_uri Stylesheet URI for the current theme/child theme. * @param string $stylesheet_dir_uri Stylesheet directory URI for the current theme/child theme. */ return apply_filters( 'stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );}
阅读全文
0 0
- wordpress style.css 不生效 缓存 cache问题
- WordPress在修改style.css样式不能立即生效
- Wordpress style.css version number
- css在JSP中不生效之路径问题
- Myeclipse中jsp页面链接css文件不生效问题
- 解决HTML外部引用CSS文件不生效问题
- maven创建的工程css文件不生效问题
- 解决修改CSS文件后网页显示不生效问题
- inotify不生效问题
- gitignore 不生效问题
- inotify不生效问题
- setLayoutParams()不生效问题
- .gitignore不生效问题
- css的hover不生效
- WordPress优化缓存wp-super-cache
- SpringMVC中url-parden配置的问题和SpringMVC中js、css不生效问题
- hosts配置不生效问题
- jsonpParameterNames不生效问题排查
- ios开发中 出现【nw_host_stats_add_src recv too small, received 24, expected 28】错误解决办法
- vue.js中的事件修饰符.self的用法。
- 多线程与多进程
- “Beginning Python”(一)内容简介
- JavaScript基础-面试题
- wordpress style.css 不生效 缓存 cache问题
- Bootstrap 按钮圆角改成直角
- FTP与SFTP的区别
- java常见简答题
- html5中3D,canvas动画网站
- <form>标签action跳转后,jquery失效的问题
- 无向网络全局以及局部效率matlab程序
- java实现每月含有天数计算
- hbase操作(shell 命令,如建表,清空表,增删改查)以及 hbase表存储结构和原理