My Sellerdeck Account | Free Trial

Sellerdeck Community and Knowledge Base

  #1  
Old 03-Mar-2014, 05:49 PM
Tezzflyer's Avatar
Tezzflyer Tezzflyer is offline
Registered User
Join Date: Apr 2007
Full Name: Terry Honeyford
Posts: 72
Thanks: 6
Thanked 0 Times in 0 Posts
where is Actinic.css in sellerdeck 2013?

I have looked averywhere, and done a search of the forums, but non tell me where exactly is the actinic.css file kept on my PC? - I am going round in circles now!
any help gratfully received!
Thanks in advance
__________________
Tezzflyer

Websparky Electrical Goods

http://www.websparky.co.uk
Reply With Quote
  #2  
Old 03-Mar-2014, 06:53 PM
NormanRouxel's Avatar
NormanRouxel NormanRouxel is offline
Registered User
Join Date: Dec 2002
Full Name: Norman Rouxel
Posts: 10,787
Thanks: 9
Thanked 757 Times in 632 Posts
It's in the Library: Click the Design tab and then the Current Stylesheet button.

You shouldn't be trying to edit the generated file "actinic.css" as it's automatically created from the above.
__________________
Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Reply With Quote
  #3  
Old 03-Mar-2014, 11:12 PM
Tezzflyer's Avatar
Tezzflyer Tezzflyer is offline
Registered User
Join Date: Apr 2007
Full Name: Terry Honeyford
Posts: 72
Thanks: 6
Thanked 0 Times in 0 Posts
Thanks, thats answered that one then!
I had a problem where using chrome on an iMac(intel) that on the checkout page, for some reason the browser appered to be NOT rendering the page using the style sheet.
however it has miraculously fixed itself - I really should know by now - turn it off and back on again!!! arrgggghhhhh!

thanks again Norman
__________________
Tezzflyer

Websparky Electrical Goods

http://www.websparky.co.uk
Reply With Quote
  #4  
Old 02-Feb-2018, 01:00 PM
winsbury winsbury is offline
Registered User
Join Date: Dec 2006
Full Name: Dean Winsbury
Posts: 41
Thanks: 0
Thanked 7 Times in 7 Posts
Chrome has a bug that doesn't reload the css files unless its timestamp has changed. To workaround I added a variable which contains the date in ddmmyy format and changed the templates to include the variable:

<link href="actinic.css?ver=<actinic:variable name="CSSdatestamp" />" rel="stylesheet" type="text/css">

The only problem now is that when the site export finished it reports an error #2 saying that it can't locate the file "actinic.css?ver=ddmmyy"

I haven't tried restoring from it but am concerned, any ideas if this is critical or just a warning ?
Reply With Quote
  #5  
Old 02-Feb-2018, 02:45 PM
MattSMR MattSMR is offline
Registered User
Join Date: Dec 2016
Full Name: Matt McCullough
Posts: 69
Thanks: 11
Thanked 15 Times in 11 Posts
Quote:
Originally Posted by winsbury View Post
Chrome has a bug that doesn't reload the css files unless its timestamp has changed. To workaround I added a variable which contains the date in ddmmyy format and changed the templates to include the variable:

<link href="actinic.css?ver=<actinic:variable name="CSSdatestamp" />" rel="stylesheet" type="text/css">

The only problem now is that when the site export finished it reports an error #2 saying that it can't locate the file "actinic.css?ver=ddmmyy"

I haven't tried restoring from it but am concerned, any ideas if this is critical or just a warning ?
Hi Winsbury, it's not a bug - it's a feature! Caching can be the death of us- as there's no way to force a users browser to recrawl a file, the method that you have mentioned would work well.

The way I've done it in the past is to wrap the actinic.css call within a block php and output a random string of dates and letters after the filename.

I'll try and find some code and post it for you.

EDIT:
Code:
<link href="actinic.css?<actinic:block php="true">echo date("d-m-y");</actinic:block>" rel="stylesheet" type="text/css">
EDIT 2: If you plan on doing multiple updates to CSS in one day - change the d-m-y to include seconds of a minute as well - Ideally try not to change CSS too many times as you'll end up increasing download time on site, as the browser will now be downloading this many times over.

EDIT 3: - Some Stackoverflow stuff here - lots of different options: https://stackoverflow.com/questions/...javascript-etc
__________________
Matt. M - SMR Enterprises Ltd.

Last edited by MattSMR; 02-Feb-2018 at 02:52 PM.. Reason: Adding code
Reply With Quote
  #6  
Old 08-Feb-2018, 02:05 PM
winsbury winsbury is offline
Registered User
Join Date: Dec 2006
Full Name: Dean Winsbury
Posts: 41
Thanks: 0
Thanked 7 Times in 7 Posts
Hi MattSMR

I think I found a snag in the suggested 'feature' workarounds:

Once every template is modified to add a version id to the actinic.css link in order to force chrome to recache, actinic itself will delete the old actinic.css from the server but will not upload a fresh version when the site is next refreshed because it no longer sees any references to the original actinic.css file in any of the templates. This is not immediately obvious when testing because persistent css caching on ones local browser utilises the cached version rather than the server version but your new customers will see a site without any css. Not good.

So, to workaround it is important to keep at least one reference to the original actinic.css (in the Home page for example) so that actinic will still automatically create and upload the new actinic.css when you refresh the site.

on Home page:
Code:
<link href="actinic.css" rel="stylesheet" type="text/css"> 
<link href="actinic.css?ver=<actinic:variable name="CSSdatestamp" />" rel="stylesheet" type="text/css">
on all other pages:
Code:
<link href="actinic.css?ver=<actinic:variable name="CSSdatestamp" />" rel="stylesheet" type="text/css">
There is some inefficiency because the css file gets loaded twice by the browser on the first visit but thereafter it will use the cached version so it's not too bad.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.