Latest News Extended - Changing Link Colors

It's there. Thanks.
10 years 9 months ago #7 by corina wilson

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
ok, thanks. now can you let me what link color you want to change? Is it the title link or the read more one?
10 years 9 months ago #8 by TemplatePlazza

Please Log in or Create an account to join the conversation.

It is the active link color but we do not want you to change colors. We have the colors specified in our custom.css file (take a look with firebug you'll see our color) but your css style is overwriting ours (I'm guessing) because of all the "!Important" specified???? It has been my understanding that over using "!Important" is not good practice?

We like your product and will continue using it but would like to know if there is a way for our custom colors to take precedence?

Also, is there any way in a future update that a field can be added to the module for custom link colors?

Thank you.
10 years 9 months ago #9 by corina wilson

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline

We have the colors specified in our custom.css file (take a look with firebug you'll see our color) but your css style is overwriting ours (I'm guessing) because of all the "!Important" specified????

It's not only because the '!important' part but also because the latestnews style .css is loaded after your template css (custom.css). See www.dropbox.com/s/kzvr5eertdym18e/k6uwk.jpg
I'm not familiar with t3 system but I think template styles should be loaded after all of your 3rd party css styles, so you can easily override them from the template side.

It has been my understanding that over using "!Important" is not good practice?

It depends on how you can control all the source codes. If you create all of css code (including the styles 3rd party extension) that probably it's easier for you to manage the code so you can avoid the the use of !Important. But sometimes for product that will be used with many templates, from the developer side, !Important is sometimes useful to keep the extension layout consistency from other css code intervention.

For your case there are few solutions that you can do
1. The easiest one is to edit the style.css of latestnews module, remove those !important parts from the latestnews style.css
2. Copy the code from style.css (the part that overrides your custom style only) to your custom.css then make the selector deeper. For example copy this code from style.css to custom.css :
div.ac article header a h2.title:hover, div.ac article header a h3.title:hover, div.ac article header a h4.title:hover, div.ac article header a h5.title:hover {color:#7ea400!important; font-size:100%!
important;}
then add the #t3-mainbody in the front of the code so it become :
#t3-mainbody div.ac article header a h2.title:hover, div.ac article header a h3.title:hover, div.ac article header a h4.title:hover, div.ac article header a h5.title:hover {color:#7ea400!important; font-size:100%!
important;}
10 years 9 months ago #10 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum