My theme is not translated

I have translated the po file and uploaded the mo and po files in the languages folder with the language code file name. But translation is not loading Here is the function file code: if( is_dir( get_stylesheet_directory() . ‘/languages’ ) ) { load_theme_textdomain(‘adifier’, get_stylesheet_directory() . ‘/languages’); } else{ load_theme_textdomain(‘adifier’, get_template_directory() . ‘/languages’);

Details

ssh with mysql instruction

I have the following instruction and it works. ssh -i /e/Data/openssh.ppk [email protected] ssh cos-server “pwd ” But when I execute the instruction below: ssh -i /e/Data/openssh.ppk [email protected] ssh cos-server “mysql -ubduser –host=tdb –password=pass mybd -e \”SELECT 1 AS Quantity;\”” It asks me passphrase. I entered it but it fails. The output shows mysql options. I…

Details

My theme is not translated

I have translated the po file and uploaded the mo and po files in the languages folder with the language code file name. But translation is not loading Here is the function file code: if( is_dir( get_stylesheet_directory() . ‘/languages’ ) ) { load_theme_textdomain(‘adifier’, get_stylesheet_directory() . ‘/languages’); } else{ load_theme_textdomain(‘adifier’, get_template_directory() . ‘/languages’);

Details

My theme is not translated

I have translated the po file and uploaded the mo and po files in the languages folder with the language code file name. But translation is not loading Here is the function file code: if( is_dir( get_stylesheet_directory() . ‘/languages’ ) ) { load_theme_textdomain(‘adifier’, get_stylesheet_directory() . ‘/languages’); } else{ load_theme_textdomain(‘adifier’, get_template_directory() . ‘/languages’);

Details

Change dns-prefetch to preconnect with correct protocol

I have this function in my functions.php file: function dns_prefetch_to_preconnect( $urls, $relation_type ) { if ( ‘dns-prefetch’ === $relation_type ) { $urls = []; } if ( ‘preconnect’ === $relation_type ) { $urls = wp_dependencies_unique_hosts(); } return $urls; } add_filter( ‘wp_resource_hints’, ‘dns_prefetch_to_preconnect’, 0, 2 ); It takes the URLs defined in wp_dependencies_unique_hosts() – which WordPress…

Details