Karmalakas Veteran
@Karmalakas · Joined 6 years ago · 1180 posts · 28 topics · 216 reputation
Badges
Recent posts
-
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
-
Grav - Linking to other pages on the same Grav
· 4 years ago
@topidesta: i have done. just explorer your self. Better no answer at all, than this. If you say you've done it, then it would be very nice of you to give the solution how you did it