Hello
For that in OrdaSoft Joomla Translate you need do so steps:
1 . For show in
OrdaSoft Joomla Translate for English Language - the USA flag
You need at
{yours site}/modules/mod_seftranslate/tmpl/flags/flat/64/
Code: |
file EN.png - rename to EN.png-
and
file US.png - rename to EN.png
|
You need do same with files in folder:
{ypurts site}/modules/mod_seftranslate/tmpl/flags/shiny/64/
2 - you need use code like you proposed, but little other:
Code: |
<div class="dropdown">
<a type="button" class="flag-icon flag-icon-en sef-translate-cur-lang" data-bs-toggle="dropdown" aria-expanded="false"></a>
<div class="dropdown-menu">
{module id="..."}
</div>
</div>
|
You may add this code to yours site with help Joomla Custom HTML module
3 you need in file:
{yours site}/modules/mod_seftranslate/tmpl/default.php
find below row
Code: |
function go_transl(lang)
{
|
and replace to
Code: |
function go_transl(lang)
{
$jqST(".sef-translate-cur-lang").removeClass().addClass("flag-icon flag-icon-"+lang+" sef-translate-cur-lang");
|
Regards
OrdaSoft team