Welcome, Guest
Username: Password: Remember me

TOPIC: CSS Changes not Visible?

CSS Changes not Visible? 2 years 5 months ago #77469

  • acp_tests
  • acp_tests's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Karma: 0
I tried adding some things to the bottom of the template.css and they did not affect the appearance. In fact, if I bring up the page and do a page source, I see that it's accessing the CSS file "ACPDefault/template.css" BUT if I put the full path for that file in my browser I see a template.css but it does not have my modifications! I'm obviously doing something wrong. I am making the changes in the template editor and I am saving them. If I log out and log back in and go back to the Templated Editor I see the changes. But when I access the CSS directly from my browser I don't see them.

Is there a delay or something else I'm missing?
The administrator has disabled public write access.

Re: CSS Changes not Visible? 2 years 5 months ago #77566

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6338
  • Thank you received: 819
  • Karma: 243
Last night, i try some change on a Dev template css.

Modify it, don't see change, look at teplate.css :no change.

Firt, i don't understand , after a minute i look at the link ...

I made my change on ls-dev.myurl and look at ls.myurl .....

:)
The administrator has disabled public write access.

Re: CSS Changes not Visible? 2 years 5 months ago #77571

  • acp_tests
  • acp_tests's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 30
  • Karma: 0
I found my problem. Stupid pilot error. :blush:

I needed to do a hard refresh, the CSS had been cached by Firefox. If I do Ctrl-F5 it reloads everything and I see the changes. I thought if a file were newer the browser should grab it again, but maybe it's because it's in a database (is it?)

Anyhoo, I got this working. Sorry for the silly post.
The administrator has disabled public write access.

Re: CSS Changes not Visible? 2 years 5 months ago #77583

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6338
  • Thank you received: 819
  • Karma: 243
It's because it's a css, same thing for js and png.jpg etc ...

The hard think ( have to do 2 refresh (sometimes more)) : background image.

Denis
The administrator has disabled public write access.

Aw: Re: CSS Changes not Visible? 2 years 5 months ago #77789

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5325
  • Thank you received: 296
  • Karma: 249
acp_tests: That is a common "problem" when editing CSS files. THese are cached by the browser and you need to either clear the cache or do a complete page reload (CTRL+F5) to force the browser loading the new CSS file instead of taking the cached one.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image