Weather by You!

Templates and Projects support => Php templates => Topic started by: BestGear on February 03, 2016, 03:32:07 AM

Title: Remove language selection?
Post by: BestGear on February 03, 2016, 03:32:07 AM
Guys

Is there an easy way to remove the language selection drop down from the top menu and leave it at English?

I appreciate that the template update will no longer work... for obvious reasons!

Thanks

David
Title: Re: Remove language selection?
Post by: BestGear on February 03, 2016, 07:36:53 AM
Hi

Had a wee look in header_menu.php and have removed the code below - is that correct!??!?

Or - should I have done it more delicately?

********************************************************

      <form id="lang_sel" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
        <p style="color: #fff">Language:&nbsp;
        <select name="langue" class="styled" title="Select one" onchange="document.forms[0].submit();return false;">
          <?php
            $inc = 0;
            while($inc < $nb_langues) {
              if($languages[$inc][0] == $lang)
                echo '<option value="'.$languages[$inc][0].'" selected="selected">'.$languages[$inc][1].'</option>'."\n";
              else
                echo '<option value="'.$languages[$inc][0].'">'.$languages[$inc][1].'</option>'."\n";
              $inc = $inc + 1;
            }
          ?>
        </select></p>
      </form> 
Title: Re: Remove language selection?
Post by: Mr.Meteo on February 03, 2016, 01:20:30 PM
Hi David,

Yes, you've found the right thing to remove.
Default language is already set to English,
so nothing else to do!

Regards,
Jacques
Title: Re: Remove language selection?
Post by: BestGear on February 03, 2016, 03:12:19 PM

Yes, you've found the right thing to remove.


Regards,
Jacques


Many thanks.... just thought its best to check with the Master!!   :-X