title: wordpress custom theme using php
body: <p>I need a help in WordPress custom theme using PHP development, I was created language dropdown with images and in configure with Gtranslator Plugin, it`s work properly but when I select other language flag can't change in Dropdown.
  my Code is given below:</p>
  
  <pre><code>&lt;li class="dropdown"&gt;
      &lt;a href="JavaScript:void(0)" class="dropdown-toggle" data-toggle="dropdown"&gt;&lt;img class="lang_icon" src="&lt;?php echo get_stylesheet_directory_uri();?&gt;/images/usaicon.png"&gt; 
          &lt;i class="fa fa-angle-down" aria-hidden="true"&gt;&lt;/i&gt;
      &lt;/a&gt;
      &lt;ul class="dropdown-menu dropdown_language"&gt;
          &lt;li&gt;&lt;a onclick="doGTranslate('en|en')" href="JavaScript:void(0)"&gt;
              &lt;img class="lang_icon" src="&lt;?php echo get_stylesheet_directory_uri();?&gt;/images/usaicon.png"&gt;
              &lt;/a&gt;
          &lt;/li&gt;
          &lt;li id="cn"&gt;&lt;a onclick="doGTranslate('en|zh-CN')" href="JavaScript:void(0)"&gt;
                      &lt;img class="lang_icon" src="&lt;?php echo get_stylesheet_directory_uri();?&gt;/images/chinaicon.png"&gt;
                      &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a onclick="doGTranslate('en|es')" href="JavaScript:void(0)"&gt;
              &lt;img class="lang_icon" src="&lt;?php echo get_stylesheet_directory_uri();?&gt;/images/mexiconicon.png"&gt;
              &lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/HboAR.png" alt=""></p>