Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

.css not updating

I am modifying the default vanilla theme, which went fine for a while, but eventually the .css stopped updating.

The html is calling: /themes/defaultsmarty/design/custom_orkn.css?v=1.0

While it should be calling at least: /themes/defaultsmarty/design/custom_orkn.css?v=2.0

I need help clearing this cache/version feature.

Thanks.

EDIT I'm not using minify I've cleared all .ini files from /cache

Tagged:

Best Answer

Answers

  • ToddTodd Chief Product Officer vanilla

    Whenever you make a change to your theme's css be sure to increment your theme's version in your $ThemeInfo array.

  • Thanks Todd

    Was looking for something like that.

  • Todd said: Whenever you make a change to your theme's css be sure to increment your theme's version in your $ThemeInfo array.

    Hi Todd,

    Can you explain what does that mean "increment your theme's version in your $ThemeInfo array" I have the same problem. Cannot see CSS updates in case Vanilla load from \cache\Minify...

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    Zhanat when you make changes to your theme, you have an about.php file in your theme folder.

    there you have $ThemeInfo['your_theme'], in it you have Version => 'some_number',;

    You might have 'Version' => APPLICATION_VERSION but this is not advisable.

    Say you have '0.1' change it to '0.2'. it really does not matter what number scheme you have so long as you update the number, and you don't use a previous one it will update the cache. you can have characters in there too, like 'v0.1', etc.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    Zhanat
  • x00 said: Zhanat when you make changes to your theme, you have an about.php file in your theme folder.

    there you have $ThemeInfo['your_theme'], in it you have Version => 'some_number',;

    You might have 'Version' => APPLICATION_VERSION but this is not advisable.

    Say you have '0.1' change it to '0.2'. it really does not matter what number scheme you have so long as you update the number, and you don't use a previous one it will update the cache. you can have characters in there too, like 'v0.1', etc.

    Thank you! I have changed the version (using Vanilla Default) in about.php and it don't want to be ubdated. May be I should wait a little bit after I change it?

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    sorry what is your theme name, where you have put your css?

    if you delete the files in cache/Minify/ it should work, but you it is recommended when you are doing your own custom theme that you create your own by copying the default over, and specifying your own meta. Then in future when you update the version, it will update the cached version.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

  • x00, using defaultsmarty-theme-1.0. Trying to change \dashboard\design\style.css, \defaultsmarty\design\custom_bigcity.css etc. In localhost everything works perfectly and firebug refer to exact .css (not \cache\minify...)

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    first of all best not edit the core, you can copy style.css and admin.css to your theme's design folder.

    secondly can you post the content of your about.php file

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    Zhanat
  • Hi x00,

    Thank you very much! I copied style.css and admin.css and all works perfectly.

  • If you really want to hear The failures and reverses which await Balenciaga - and one after another sadden the brow of Borse Balenciaga - add a dignity to the prospect of human life, which no Arcadian success would do. Our destiny offers not the cup of despair, but the chalice of Scarpe Gucci. So let us seize it, not in fear, but in Gucci Sito Ufficiale.

    nanoGrrl422x00kasperisager
  • I had the same problem. All my files where cached in $VANILLIA_ROOT/cache/css I've cleared the CSS cache and removed write persmissions (chmod -R a-w cache/css) That did the trick for me and I can finally go ahead with building my theme.

    However the cache is a good thing, so use it when you're done ;)

    mjoanisse
Sign In or Register to comment.