Weather by You!
Templates and Projects support => Php templates => Topic started 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
-
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:
<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>
-
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
-
Yes, you've found the right thing to remove.
Regards,
Jacques
Many thanks.... just thought its best to check with the Master!! :-X