Google Currency Converter - changing the width of the pulldown currency menu

Now that Google supports a total of 93 currencies, the pulldown menu of the currencies might be too long to fit your module width.

So how do you change the width of the pulldown menu so that it can fit nicely within your module position?

The width of the pulldown currency menu

The width of the pulldown menu is determined by the length of the options.

The length of each option is indicated in the square brackets.


SnoCodeCurrencyLength
1AEDUnited Arab Emirates Dirham (AED)33
2ANGNetherlands Antillean Guilder (ANG)35
3ARSArgentine Peso (ARS)20
4AUDAustralian Dollar (AUD)23
5BDTBangladeshi Taka (BDT)22
6BGNBulgarian Lev (BGN)19
7BHDBahraini Dinar (BHD)20
8BNDBrunei Dollar (BND)19
9BOBBolivian Boliviano (BOB)24
10BRLBrazilian Real (BRL)20
11BWPBotswanan Pula (BWP)20
12CADCanadian Dollar (CAD)21
13CHFSwiss Franc (CHF)17
14CLPChilean Peso (CLP)18
15CNYChinese Yuan (CNY)18
16COPColombian Peso (COP)20
17CRCCosta Rican Colon (CRC)23
18CZKCzech Republic Koruna (CZK)27
19DKKDanish Krone (DKK)18
20DOPDominican Peso (DOP)20
21DZDAlgerian Dinar (DZD)20
22EEKEstonian Kroon (EEK)20
23EGPEgyptian Pound (EGP)20
24EUREuro (EUR)10
25FJDFijian Dollar (FJD)19
26GBPBritish Pound Sterling (GBP)28
27HKDHong Kong Dollar (HKD)22
28HNLHonduran Lempira (HNL)22
29HRKCroatian Kuna (HRK)19
30HUFHungarian Forint (HUF)22
31IDRIndonesian Rupiah (IDR)23
32ILSIsraeli New Sheqel (ILS)24
33INRIndian Rupee (INR)18
34JMDJamaican Dollar (JMD)21
35JODJordanian Dinar (JOD)21
36JPYJapanese Yen (JPY)18
37KESKenyan Shilling (KES)21
38KRWSouth Korean Won (KRW)22
39KWDKuwaiti Dinar (KWD)19
40KYDCayman Islands Dollar (KYD)27
41KZTKazakhstani Tenge (KZT)23
42LBPLebanese Pound (LBP)20
43LKRSri Lankan Rupee (LKR)22
44LTLLithuanian Litas (LTL)22
45LVLLatvian Lats (LVL)18
46MADMoroccan Dirham (MAD)21
47MDLMoldovan Leu (MDL)18
48MKDMacedonian Denar (MKD)22
49MURMauritian Rupee (MUR)21
50MVRMaldivian Rufiyaa (MVR)23
51MXNMexican Peso (MXN)18
52MYRMalaysian Ringgit (MYR)23
53NADNamibian Dollar (NAD)21
54NGNNigerian Naira (NGN)20
55NIONicaraguan Cordoba (NIO)24
56NOKNorwegian Krone (NOK)21
57NPRNepalese Rupee (NPR)20
58NZDNew Zealand Dollar (NZD)24
59OMROmani Rial (OMR)16
60PENPeruvian Nuevo Sol (PEN)24
61PGKPapua New Guinean Kina (PGK)28
62PHPPhilippine Peso (PHP)21
63PKRPakistani Rupee (PKR)21
64PLNPolish Zloty (PLN)18
65PYGParaguayan Guarani (PYG)24
66QARQatari Rial (QAR)17
67RONRomanian Leu (RON)18
68RSDSerbian Dinar (RSD)19
69RUBRussian Ruble (RUB)19
70SARSaudi Riyal (SAR)17
71SCRSeychellois Rupee (SCR)23
72SEKSwedish Krona (SEK)19
73SGDSingapore Dollar (SGD)22
74SKKSlovak Koruna (SKK)19
75SLLSierra Leonean Leone (SLL)26
76SVCSalvadoran Colon (SVC)22
77THBThai Baht (THB)15
78TNDTunisian Dinar (TND)20
79TRYTurkish Lira (TRY)18
80TTDTrinidad and Tobago Dollar (TTD)32
81TWDNew Taiwan Dollar (TWD)23
82TZSTanzanian Shilling (TZS)24
83UAHUkrainian Hryvnia (UAH)23
84UGXUgandan Shilling (UGX)22
85USDUS Dollar (USD)15
86UYUUruguayan Peso (UYU)20
87UZSUzbekistan Som (UZS)20
88VEFVenezuelan Bolivar (VEF)24
89VNDVietnamese Dong (VND)21
90XOFCFA Franc BCEAO (XOF)21
91YERYemeni Rial (YER)17
92ZARSouth African Rand (ZAR)24
93ZMKZambian Kwacha (ZMK)20

Note: Highlighted in yellow are those options with length greater than 25.

Changing the width of the pulldown currency menu

To change the width of the pulldown currency menu, do the following:

  1. Goto the folder: <Joomla_Root_Folder>/modules/mod_googlecurrencyconverter
  2. Edit the file mod_googlecurrencyconverter_libclass.php
  3. Goto Line 99. You should see the following:
  4. 	$currencies = array(
    		"AED" => 'United Arab Emirates Dirham (AED)',
    		"ANG" => 'Netherlands Antillean Guilder (ANG)',
    		"ARS" => 'Argentine Peso (ARS)',
    		"AUD" => 'Australian Dollar (AUD)',
    		"BDT" => 'Bangladeshi Taka (BDT)',
    		"BGN" => 'Bulgarian Lev (BGN)',
    		"BHD" => 'Bahraini Dinar (BHD)',
    		"BND" => 'Brunei Dollar (BND)',
    		"BOB" => 'Bolivian Boliviano (BOB)',
    		"BRL" => 'Brazilian Real (BRL)',
    		"BWP" => 'Botswanan Pula (BWP)',
    		"CAD" => 'Canadian Dollar (CAD)',
    		"CHF" => 'Swiss Franc (CHF)',
    		"CLP" => 'Chilean Peso (CLP)',
    		"CNY" => 'Chinese Yuan (CNY)',
    		"COP" => 'Colombian Peso (COP)',
    		"CRC" => 'Costa Rican Colon (CRC)',
    

  5. Edit the string of the options until it fits your module width.
  6. Once you saved the file, reload your Joomla page. You should be able to see the effect immediately.

Add comment


Security code
Refresh