Reply To: language selector

#10034526
Support
Keymaster

Hello,

Great!

Regarding start with “HU” language:
I don’t know how you are doing the PHP code since it’s a server side code and couldn’t see PHP code at source code.

Probably you are checking the $_GET['lan'] value to print respective language content. Said that, you should define the “hu” language as default when $_GET['lan'] is not set. For example:

if( isset( $_GET['lan'] ) ) {
	$current_language = $_GET['lan'];
} else {
	$current_language = 'hu';
}

Regarding header:
You can create a separate PHP file for the header and include it in all pages. Learn more about that here:
https://en.wikibooks.org/wiki/PHP_Programming/headers_and_footers

We hope this helps!

Kind Regards,

Rodrigo.


If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads