Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
432 views
in Q2A Core by
I have made some changed to the css and uploaded the server, however, the changes aren't effective. Indeed I checked the raw source code, the line is

<LINK REL="stylesheet" TYPE="text/css" HREF="./qa-theme/Default/qa-styles.css?1.4.3">

while I expect it to be

<LINK REL="stylesheet" TYPE="text/css" HREF="./qa-theme/Default/qa-styles.css">

because I changed the later file. What's the problem then? thanks.

1 Answer

+1 vote
by

The ?1.4.3 part is just a parameter, the file is still qa-styles.css. It's used to make sure the CSS gets updated when you upgrade Q2A (as the URL would change to qa-styles.css?1.4.4 for example).

Silly question but did you try reloading the page to make sure your browser is using the latest version of the CSS? If that fixes the issue, then you may want to change it to point to ./qa-theme/Default/qa-styles.css?1.4.3.1 or something like that, so your users get the updated styles. You'd need an advanced theme and override the head_css function.

by
Thanks for your reply, I've made a minor change to the css (qa-styles.css). How can I update qa-styles.css?1.6 ? I mean, flush the file to reflect the contents of the new qa-styles.css
by
You could do what I said above, override the head_css function in an advanced theme.

Or for a quick fix, open "qa-include/qa-theme-base.php" and find the place where it has "qa-styles.css?1.6" then replace it with "qa-styles.css?1.6b"
by
Thank, I've done it. I think a feature request should be "purge css file button".
...