OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

Joomla Translate module support

Go to bottom Favoured: 0

Add flags to dropdown

MARC2019 (Visitor)
Posts: 0
graphgraph
User Offline
Add flags to dropdown 4 Years, 12 Months ago
Karma: 0  
Hi,

Thank you for releasing this plugin for free!

I was wondering if it would be possible to add a class to each select option or to wrap each one so that I may add a flag to the drop down menu. I've tried to target the option but from what I understand it's not possible to alter a system generated drop down.

Many thanks
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Add flags to dropdown 4 Years, 11 Months ago
Karma: 102  
Hello

I not see your site.

But if we will check our SefTranslate demo ordasvit.com/joomla-sef-translate/

There for connect to "English" option to select

You may use next selector

Code:

form[name="translateForm"] select option[value="en"] 


as example for set color to red and change font site please add below code to your template CSS sile:

Code:

form[name="translateForm"] select option[value="en"] {
  color: #c00;
  font-size: 18px;
}



Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
joomleb (User)
Gold Boarder
Posts: 204
graphgraph
User Offline Click here to see the profile of this user
Re:Add flags to dropdown 4 Years, 11 Months ago
Karma: 0  
MARC2019 wrote:
I was wondering if it would be possible to add a class to each select option or to wrap each one so that I may add a flag to the drop down menu. I've tried to target the option but from what I understand it's not possible to alter a system generated drop down.

Good idea to give us a way to build our own Module Layouts...
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Add flags to dropdown 4 Years, 11 Months ago
Karma: 102  
Hello

SefTranslate Module layout located at
{your site}/modules/mod_seftranslate/tmpl/default.php

But it not very simply

Any way before edit it, Please backup this file

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
MARC2019 (Visitor)
Posts: 0
graphgraph
User Offline
Re:Add flags to dropdown 4 Years, 11 Months ago
Karma: 0  
Hi Admin,

Thank you very much for getting back to me. I will have a look and get back to you if I have any questions.

Many thanks!
Logged Logged
The administrator has disabled public write access.
joomleb (User)
Gold Boarder
Posts: 204
graphgraph
User Offline Click here to see the profile of this user
Re:Add flags to dropdown 4 Years, 6 Months ago
Karma: 0  
admin wrote:
You may use next selector
Code:

form[name="translateForm"] select option[value="en"] 

as example for set color to red and change font site please add below code to your template CSS sile:
Code:

form[name="translateForm"] select option[value="en"] {
  color: #c00;
  font-size: 18px;
}



Please, Can you give us some suggestions on How to hide the "Language" from the selection list and, instead of it to show as selected the default language ?

OR (to hide the default language into the Module > Language List: ..., while show the "Language" following the Component > Settings > Website Main Language: ...)

I mean the most efficient and simple solution...
Logged Logged
Last Edit: 2020/05/04 17:55 By joomleb.
The administrator has disabled public write access.
Go to top
»