How Can I Change The Css For A Module

I have just installed and configured the Yii-comments module, and it works fine.

Now, I’d like to customize the look of the comments block. I could update the css file installed with the module at protected/modules/comments/assets/comments.css but that’s not good practice since it is not recommended to change the base files of a module or an extension.

Moreover, I would like to allow multiple themes on the site, so I had a look at theming.

I added a www/themes/classic/views/comments/assets/comments.css file and changed some styles inside but the original styles still show.

I also tried to put my file at www/themes/classic/assets/comments/comments.css, with the same result : only the old styles show.

Obviously, this is not the good place for the file. So, where should I put this customized comments.css file after you ?

Hi,

you can put the css in root folder and call this css using


<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/comments.css" />

hope it will be help…

I guess it should work, but I won’t be able to use themes with this approach. Theming is important here because the site will be used as a template later and extended with multiple themes/skins.