Multilingual website with different content and look
Multilingual website with different content and look
Multilingual website with different content and look
One option could be to use menu descriptions (option found in Menus Screen Options, if not enabled yet) and a custom menu walker to display extra text before/after menu items in similar fashion as in the reference site you mentioned. This way you could add the translated string to the menu description field. WPBeginner has … Read more
I think Jacob has probably solved your problem in the comments. However, to your question: How to debug further this issue? I would hook into the load_textdomain_mofile filter and check the fully built file paths WordPress is actually trying to read: Example: <?php function debug_missing_mofile( $mofile, $domain ){ if( ‘ausg’ === $domain && ! is_readable($mofile) … Read more
get_locale() is different from $locale
WPGlobus Multilingual – REST API
This is pretty easy, and you can follow along with this tutorial How to Add Custom Fonts in WordPress specially the way under the heading Adding Custom Fonts in WordPress Using CSS3 @font-face : The most direct way of adding custom fonts in WordPress is by adding the fonts using CSS3 @font-face method. This method allows you … Read more
This is how I solved it: /** * Force currency change */ add_filter( ‘wcml_client_currency’, function($current) { if(isset($_GET[‘currency’]) && $_GET[‘currency’]) return $_GET[‘currency’]; if(isset($_POST[‘currency’]) && $_POST[‘currency’]) return $_POST[‘currency’]; return $current; } ); And then in order for the above filter to be listened to, it’s important that you have added below code: add_action( ‘wp_ajax_quick_view_single_product’, __NAMESPACE__ . ‘\\quick_view_single_product’ … Read more
Add this code to your functions.php file in your WordPress theme files. See this article for some additional help: https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/
WordPress has date_i18n to retrieve the date in localised format, based on timestamp. Try: echo date_i18n(“d F Y (H:i)”,$date) ;
Automatically switch language based on visitor’s country