bloggus Posted November 6, 2011 Share Posted November 6, 2011 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 More sharing options...
shacker Posted November 7, 2011 Share Posted November 7, 2011 copy these files your theme like themes/themename/modules/modulename/tpl , css, images, etc and edit as your wish Link to comment Share on other sites More sharing options...
bloggus Posted November 7, 2011 Author Share Posted November 7, 2011 Ok, as I thought. Thanks! Link to comment Share on other sites More sharing options...
rethus Posted December 26, 2013 Share Posted December 26, 2013 (edited) I try to overwrite the Black cart.gif with an white one. So i add this: themes/themename/modules/blockuserinfo/img/icon/cart.gif But this overwriting not work. Why? Edited December 26, 2013 by rethus (see edit history) Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 26, 2013 Share Posted December 26, 2013 Hi. If the locations are correct, refresh your site with CTRL + F5, to reload the images. If still not good, send the URL to your site. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
rethus Posted December 26, 2013 Share Posted December 26, 2013 Here is the link to the page computerpirat-online.com/index.php Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 26, 2013 Share Posted December 26, 2013 Hi Here is the link to the page computerpirat-online.com/index.php You want to change the icon to the left of 'Warenkorb' in the top right corner? Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
rethus Posted December 26, 2013 Share Posted December 26, 2013 exactly, the layer for the cart should become dark like the horizontal line above, and the cart should come white Link to comment Share on other sites More sharing options...
vekia Posted December 26, 2013 Share Posted December 26, 2013 hello your css file points to the http://computerpirat-online.com/modules/blockuserinfo/img/icon/cart.gif file. if you want to use theme directory to override image, you have to override .css also. Link to comment Share on other sites More sharing options...
CartExpert.net Posted December 26, 2013 Share Posted December 26, 2013 You didn't override the module's css file, it is till in the module's folder, so you should upload the image to the module's directory. Regards.Robin.The CartExpert Team Link to comment Share on other sites More sharing options...
rethus Posted December 27, 2013 Share Posted December 27, 2013 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 More sharing options...
rethus Posted December 27, 2013 Share Posted December 27, 2013 (edited) 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 December 27, 2013 by rethus (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 27, 2013 Share Posted December 27, 2013 you have to put image there where, where background url param points in your .css file. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now