WordPress loads old style.css, then loads current one


I’m new to WordPress, so I’m not really sure how it works, but I’ve been editing the theme by changing wp-content/themes/<theme_name>/css/style.css, then uploading this to the website via FTP. Here’s the issue I’m having:

From the Chrome Developer Tools, I can see that the style.css (the current file) is overwriting style.css?ver=4.6.3. This means that even though I removed the border from the current CSS, it’s still being displayed from the old CSS version.

Looking at the HTML source code for the page that WordPress generates, I found this in <head>:

<link rel="stylesheet" id="twentysixteen-style-css" href="http://<web.address>/wp-content/themes/<theme_name>/style.css?ver=4.6.3" type="text/css" media="all">

And then I also found this:

<link href="http://<web.address>/wp-content/themes/<theme_name>/css/style.css" rel="stylesheet" type="text/css">

What’s going on? Why is WordPress loading an old version of style.css, and then the current one?


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/wordpress-loads-old-style-css-then-loads-current-one/">

WordPress loads old style.css, then loads current one</a>
, wardzin 4 months 0 Answers 35 views 0

Leave an answer