Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 10:46 am EST

Geeklog Forums

Variables in Theme CSS files? Is it possible?


Status: offline

wooge

Forum User
Junior
Registered: 12/27/02
Posts: 17
Hi all,
...wonderin' if there was a way i could use geeklog variables ( like layout_url for example) in a theme's CSS file.

In my case i reference images in my CSS files, and wanted to make it less "hard coded" so that if users change the theme's name it wouldn't effect the images referenced.

Any thoughts?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog doesn't parse the CSS file, so the answer is "no".

You can, however, use variables in CSS if you have a style section in your header.thtml.

bye, Dirk
 Quote

Status: offline

wooge

Forum User
Junior
Registered: 12/27/02
Posts: 17
Quote by Dirk:
You can, however, use variables in CSS if you have a style section in your header.thtml.
bye, Dirk


ahaaa.... i got so used to external css files, i completely forgot about that... thanks ! Smile
 Quote

All times are EST. The time is now 10:46 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content