Jump to content

[Solved] How to override CSS and images for a module?


Recommended Posts

I understand the regular way to override css and images for modules, but in this case the module is according to

 

 

modules/modules-name/module-name.php

modules/modules-name/module-name.tpl

modules/modules-name/img/different-images

modules/modules-name/css/different-name.css

 

In this case how do I override the css and images files without editing the originals??

Link to comment
Share on other sites

  • 2 years later...

 

if you want to use theme directory to override image, you have to override .css also.

 

Ok, i have now copy and modify the css file from 

/modules/blockuserinfo/blockuserinfo.css 

to 

themes/themename/modules/blockuserinfo/blockuserinfo.css  

AND

themes/themename/modules/blockuserinfo/css/blockuserinfo.css

Both didn't work.

 

@CartExpert.net: I don't want to replace the image in the original module folder, I wan't to use a upgrade-safe overwriting

Link to comment
Share on other sites

Ok, i got it, but i have to say, " I don't like it!"

 

I have to put the css inside of /themes/css/modules/modulename... instead of /themes/modules/modulename/css.

 

Why was this way choosed, instead have all the module-overwritings inside ONE Directory-Structure below /moudules/ ?

This is very confusing!

 

 

But one additional Question:

If i wan't to overload the icon, i have to put it into: /themes/img/icon/modules/mymoduleName/cart.gif ?

Or have i to put it into /themes/img/modules/mymoduleName/icon/cart.gif?

 

And why the overwriting not working inside of a css-File?

Edited by rethus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...