Welcome, Guest
Username Password: Remember me

Parameter for a CSS file
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Parameter for a CSS file

Parameter for a CSS file 12 years, 12 months ago #6511

  • doorknob
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
The custom CSS file already implemented is a useful feature but it has limitations because the location of the file is fixed. It would also be very useful to be able to load an existing CSS file. The main advantage of this from my point of view is the referencing of images from within the CSS file (which is always relative to the location of the CSS file). For me to use the custom CSS file for all my CSS needs would be very cumbersome and involve the replication of hundreds of images. I have added the line
<style type="text/css" media="screen">@import "<?php echo $this->baseurl;?>/components/somecomponent/filename.css";</style>
to the index.php and component.php files but it would be very helpful if these could be added to the base product and the file name populated from a parameter.
Regards
Phil
  • Page:
  • 1
Time to create page: 0.07 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.