Change flag in template on "switch language block"
Permalink
How do I change the flag-image in a template without removing the original flags?
If I just change the original flags the flag on the button on the upper toolbar also changes.
I just want to set a specific flag in a template and leave the on that on the button alone.
If I just change the original flags the flag on the button on the upper toolbar also changes.
I just want to set a specific flag in a template and leave the on that on the button alone.
Well that worked, but it also replaced the flag in the toolbar when you are logged in.
Isn't there a simpler way to keep those apart?
Isn't there a simpler way to keep those apart?
IMHO no...
To bad.
It would have been nice if one could put the /image/flags folder straight in the template folder. Then you could have different designs on the flags and not touch the user interface inside C5.
It would have been nice if one could put the /image/flags folder straight in the template folder. Then you could have different designs on the flags and not touch the user interface inside C5.
/images/flags
The file names must have the name XX.png, where XX is the country code (for instance: IT for Italian - Italy.
You can also customize the size of the flags by adding these two defines in your /config/site.php: