简体   繁体   English

WordPress主题修改-Style.css注意更新

[英]Wordpress Theme Modifications - Style.css Note Updating

I'm currently working on a website. 我目前正在网站上。 I am using wordpress along with a theme. 我正在使用wordpress和一个主题。 I'm trying to make modifications to the theme. 我正在尝试对该主题进行修改。 I'm doing this via a child theme as recommended. 我正在通过推荐的儿童主题来做到这一点。

I'm running into an issue where I'm trying to make changes in the child's style.css . 我遇到了一个问题,试图更改孩子的style.css。 However, many of these changes do not seem to be going through. 但是,其中许多变化似乎并未实现。

As an example (refer to my website here: coffeedev.com), I'm trying to make the main container's corners rounded. 例如(请参阅我的网站:coffeedev.com),我试图使主容器的角变圆。 I'm doing this with the 'border-radius' function. 我正在使用“边界半径”功能。

When I do this in the child theme's style.css, the changes do not take place. 当我在子主题的style.css中执行此操作时,不会发生更改。 So I'm trying to understand why the changes aren't taking place. 因此,我试图了解为什么未进行更改。

From research, I believe it is either due to my webhosting (through godaddy) having some kind of server caching, thus the changes aren't updating when I reload the page, or it is due to some underlying overriding taking place. 从研究中,我相信这是由于我的网络托管(通过godaddy)具有某种服务器缓存,因此,当我重新加载页面时,这些更改未更新,或者是由于发生了一些底层的覆盖。 However, I'm not familiar enough with CSS to determine where the overriding would take place. 但是,我对CSS不够熟悉,无法确定将在哪里进行覆盖。

Any help is appreciated! 任何帮助表示赞赏!

Issues when the server is running ATS, Varnish or similar cache utility that the author has no control over. 当服务器运行作者无法控制的ATS,Varnish或类似的缓存实用程序时出现的问题。 Sometimes cache files stick around for a while and users have no control over caching applications. 有时缓存文件会停留一段时间,并且用户无法控制缓存应用程序。 If you want your css, javascript, image or other asset updates to be reflected instantly, this is the perfect solution for you. 如果您希望CSS,JavaScript,图像或其他资产更新立即得到反映,那么这是您的理想解决方案。

https://wordpress.org/plugins/wp-version-in-query-string-modifier/ https://wordpress.org/plugins/wp-version-in-query-string-modifier/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM