overriding "media/mod_languages/css/template.css"

General questions regarding the use of languages in Joomla! 2.5.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
act1ve
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Thu Oct 27, 2011 8:14 pm

overriding "media/mod_languages/css/template.css"

Post by act1ve » Wed Jan 25, 2012 10:50 am

Hello,

I apply some stylings to native joomla language switcher module.
Can you please tell, how to avoid editing the core file and override the media/mod_languages/css/template.css

I tried creating folder "mytemplate/html/media/mod_languages/css" and put new css file there, but it didn't work.

Thank you

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18886
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: overriding "media/mod_languages/css/template.css"

Post by infograf768 » Wed Jan 25, 2012 11:13 am

Normally you just have to add the classses in your template css file and change at will.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

act1ve
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Thu Oct 27, 2011 8:14 pm

Re: overriding "media/mod_languages/css/template.css"

Post by act1ve » Wed Jan 25, 2012 11:55 am

infograf768 wrote:Normally you just have to add the classses in your template css file and change at will.
Yeah, it is a good solution, thanks :)

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18886
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: overriding "media/mod_languages/css/template.css"

Post by infograf768 » Wed Jan 25, 2012 4:56 pm

It was coded this way to make it easy for the users and template makers
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

tkuschel
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed May 30, 2012 2:22 pm
Location: Wien, Austria
Contact:

Re: overriding "media/mod_languages/css/template.css"

Post by tkuschel » Wed Mar 30, 2016 8:48 am

Joomla 3.x: You can override the template.css within your template too:
/templates/<my_template>/css/mod_languages/template.css

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4026
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: overriding "media/mod_languages/css/template.css"

Post by itoctopus » Wed Mar 30, 2016 8:53 am

Quick note here: If you have a CSS style that you are having problems with overwriting, then just add !important at its end, and it will supersede all the identical CSS styles applied for the same class. Example:

Code: Select all

#mydiv {height: 100% !important;}
Also note that you must clear your browser cache in order to see your CSS changes.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter


Locked

Return to “Language - Joomla! 2.5”