K2 SmartForms custom theme

  • 29 April 2014
  • 5 replies
  • 20 views

Badge

Hi there,

 

I seem to be having a problem with a few custom themes I've created for my k2 SmartForms. I've copied one of the previous themes and modified some css.

 

Everything displays perfectly fine for me in all browsers (including IE), however pretty much all other users seem to be viewing half the original copied themes styling and half mine when using IE.

 

It seems to only occur in IE. I figure it has to be a caching problem with IE. Is there any configuration change I can make on the server side to ensure IE always fetches the latest css?

 

I've already tried a web.config change someone suggested here:

http://cyclops.nettrends.nl/blog/2013/10/k2-smartforms-custom-theme-tips/comment-page-1/#comment-32126

 

Furthermore I've added a cacheing rule on IIS to always retreive the latest of anything with a .css extensionto no avail.

 

Any insight or help in this regard would be greatly appreciated.

 

On a side note - has anyone been having problems with this comminuty site. Every other day I get on here it asks me to provide an alias. Starting to get annoying since I'm on my 4th alias...

 

Thanks in advance,

Sean


5 replies

Badge +7

Hello


 


I suggest that you try to clear their cache and see if you still get the same result.


 


Regards


Nelly

Badge +2

Hi there,

 

Thank you for your response.

 

The problem exists with every other user, meaning I'd have to reset cache on everyones machine. Furthermore this is happening to users accessing the forms for the first time too, so I'm not too sure whether it's the old stylesheets being cached. If I'm not mistaken they're set with an expirey date of only 1 day anyway so it should be fetching the latest everyday.

 

P.S. I had to provide another alias when browsing to this post again. I'm running out of alias'

Badge +2

Hi there,

 

I can confirm that resetting browser cache does not work. Any other ideas?

Thanks

Badge +7

Hello  @seanheinen88


 


Please have a look at the following documents and see if you will not be able to resolve the issue you are having:


http://help.k2.com/kb001340


http://help.k2.com/helppages/K2smartforms1.0.4/webframe.html#Creating_a_Custom_Theme.html


 


Kind regards


Nelly

Badge +2

I managed to find a work around.

 

Through css, I used a "background-image" instead of the "background-color". For some reason even though my css was the following:

 

background:none;

background-color:red;

 

It still displayed out of the box K2 css background images and colours in IE only.

 

By instead using:

background-image:url('red_image.jpg");

 

I managed to work around the problem. Probably something silly I missed with the css so I'm not going to sweat it.

 

Thanks,
Sean

 

Reply