Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How Can I Change The Css For A Module

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>