Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

  • 0
Posted

theme.css is what sets the color theme based on the theme selected and defined under Settings > Company > Look and Feel > Themes. I don't know if that answers your question, but without theme.css Blesta will revert to default colors.

  • 0
Posted
6 hours ago, furioussnail said:

I undestand the purpose of the theme.css file. The problem is caused by the "?dir=" query string added to the file:

<link href="/admin/theme/theme.css?dir=" rel="stylesheet" type="text/css" media="screen" />

I think the href should point to the file without "?dir=".

Thank you.

I don't know the reason ?dir= is appended to the file. I'll bring it up with the team. What kind of caching are you doing, and how is the resource interpreted? Does it assume that it's a dynamic resource, and does not cache it, or? If it was cached, a new theme would not be picked up until the cache expires. For the admin area, this is a problem if you have multiple companies and are switching between them. The URL would stay the same, but the company & theme would change.

Perhaps the file name should be THEMENAME.css

  • 0
Posted
17 hours ago, Paul said:

I don't know the reason ?dir= is appended to the file. I'll bring it up with the team. What kind of caching are you doing, and how is the resource interpreted? Does it assume that it's a dynamic resource, and does not cache it, or? If it was cached, a new theme would not be picked up until the cache expires. For the admin area, this is a problem if you have multiple companies and are switching between them. The URL would stay the same, but the company & theme would change.

Perhaps the file name should be THEMENAME.css

Yes, I think the theme should be set to theme.css, or custom-theme.css. I don't think web browsers understand the ?dev= part of that query.

  • 0
Posted
On 8/23/2018 at 6:40 AM, Paul said:

I don't know the reason ?dir= is appended to the file. I'll bring it up with the team

from the code it appear that if the 'dir' is set in the url then system fetch the dir directory to retrieve theme.css from it. and i don't find in any part in blesta where to set this dir?!!!

maybe it was added for a future use ! but now it has no effect at all .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...