Customised flag icons
Moderator: 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.
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.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Jun 18, 2013 9:28 am
- Location: Montpellier, France
- Contact:
Customised flag icons
Hi I have my multi language site up and running, but the flag icons provided don't really look right on my site.
Is there any way I can add my own flags to replace these as I would like them to match the social media icons I have in place just next door to the language switcher. (i.e. square and with some shading effects).
Thanks for any help. And sorry if this has been answered, I have searched but with no luck.
Chris
Is there any way I can add my own flags to replace these as I would like them to match the social media icons I have in place just next door to the language switcher. (i.e. square and with some shading effects).
Thanks for any help. And sorry if this has been answered, I have searched but with no luck.
Chris
- AlphaDesign
- Joomla! Intern
- Posts: 61
- Joined: Fri Apr 14, 2006 3:12 pm
- Location: France - Nîmes
- Contact:
Re: Customised flag icons
Hi, the flags images are located in this folder /media/mod_languages/images/ you can replace them however keep the same name & extension as the original one
Alpha Design : Joomla Template Design & Development since 2005
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Jun 18, 2013 9:28 am
- Location: Montpellier, France
- Contact:
Re: Customised flag icons
As simple as that?
Thanks. Will they remain there when Joomla updates?
Thanks. Will they remain there when Joomla updates?
- AlphaDesign
- Joomla! Intern
- Posts: 61
- Joined: Fri Apr 14, 2006 3:12 pm
- Location: France - Nîmes
- Contact:
Re: Customised flag icons
YesFreemani wrote:As simple as that?
keep a copy of your modified flag images, as it might happen that a Joomla update change theses files, even if I don't think it is very likelyFreemani wrote:Will they remain there when Joomla updates?
Alpha Design : Joomla Template Design & Development since 2005
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Jun 18, 2013 9:28 am
- Location: Montpellier, France
- Contact:
Re: Customised flag icons
Thank you very much, works a treat.
- AlphaDesign
- Joomla! Intern
- Posts: 61
- Joined: Fri Apr 14, 2006 3:12 pm
- Location: France - Nîmes
- Contact:
Re: Customised flag icons
no worries
Alpha Design : Joomla Template Design & Development since 2005
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Customised flag icons
It is advised to keep all the default .gif images as they are anyway used in back-end.
If you create new images, use the same prefix and save them as jpg or png.
Then make a template override for the mod_languages module in the html folder of your template where the only change will be the suffix of the image.
I.e. change
to
Instruction shere:
http://docs.joomla.org/Understanding_Ou ... _Overrides
If you create new images, use the same prefix and save them as jpg or png.
Then make a template override for the mod_languages module in the html folder of your template where the only change will be the suffix of the image.
I.e. change
Code: Select all
<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true);?>
Code: Select all
<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.png', $language->title_native, array('title' => $language->title_native), true);?>
http://docs.joomla.org/Understanding_Ou ... _Overrides
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
- AlphaDesign
- Joomla! Intern
- Posts: 61
- Joined: Fri Apr 14, 2006 3:12 pm
- Location: France - Nîmes
- Contact:
Re: Customised flag icons
Infograph is right the override solution is the proper solutioninfograf768 wrote:It is advised to keep all the default .gif images as they are anyway used in back-end.
Alpha Design : Joomla Template Design & Development since 2005
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
alphadesign.fr/services/creation-de-sites-templates-joomla-responsives.html
alphadesign.fr
-
- Joomla! Ace
- Posts: 1045
- Joined: Sat Aug 20, 2005 8:53 am
- Location: Panamá
Re: Customised flag icons
Hi Infograf768,infograf768 wrote:It is advised to keep all the default .gif images as they are anyway used in back-end.
If you create new images, use the same prefix and save them as jpg or png.
Then make a template override for the mod_languages module in the html folder of your template where the only change will be the suffix of the image.
I.e. changetoCode: Select all
<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.gif', $language->title_native, array('title' => $language->title_native), true);?>
Instruction shere:Code: Select all
<?php echo JHtml::_('image', 'mod_languages/' . $language->image . '.png', $language->title_native, array('title' => $language->title_native), true);?>
http://docs.joomla.org/Understanding_Ou ... _Overrides
Please, your june 2013 suggestion is still valid, insn't it?
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: Customised flag icons
Suggestion is the same.
Beware though as the mod_languages template has changed a bit and $language->image . '.gif' can be found in 3 places.
Beware though as the mod_languages template has changed a bit and $language->image . '.gif' can be found in 3 places.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Ace
- Posts: 1045
- Joined: Sat Aug 20, 2005 8:53 am
- Location: Panamá
Re: Customised flag icons
@Infograf768
thank you very much for support!
thank you very much for support!