Karmalakas Veteran
@Karmalakas · Joined 6 years ago · 1191 posts · 34 topics · 219 reputation
Badges
Recent posts
-
How to restore a Grav Backup to a new server
· 4 years ago
I guess best thing would be to check error log
-
Image url in css theme
· 4 years ago
I really doubt any SCSS/SASS compiler supports Twig. And I don't really see how it would. Unless you're compiling to CSS on every single page load, so that it could check variables and use them.
-
Image url in css theme
· 4 years ago
/forum/general/image-url-in-css-theme-t4935?u=karmalakas
-
Image url in css theme
· 4 years ago
/ means path is from web root. Without - path is from css location
-
Image url in css theme
· 4 years ago
It does.. On server side (PHP, Twig). CSS is processed on client side and PHP streams or Twig vars won't work there
-
Image url in css theme
· 4 years ago
So doesn't url('/user/themes/mytheme/images/xy.jpg') work?
-
Image url in css theme
· 4 years ago
@backit: background-image: url(‘/images/xy.jpg’); This must work if /images is on your web root. Eg. if image is at example.com/some/stuff/images/image.jpg and CSS is at example.com/css/path/styles.c
-
Hook into theme config save event?
· 4 years ago
In your theme class you can define what assets to load based on any config setting, I think 🤔
-
Hook into theme config save event?
· 4 years ago
You don't have to change file and that would be discouraged. I would try something like custom TW theme switching depending on data attribute. And this data attribute should be changed depending on Gr
-
Hook into theme config save event?
· 4 years ago
@Netzhexe: manipulate a theme file ? Which file exactly and why? Sounds very suspicious