Add translation files to your Dealership child theme

When you add your own translation (PO & MO file) to the theme's languages folder you'll risk to have those files deleted or modified on each theme update.

A child theme is the best solution for this problem and your translation will remain intact on each theme update.

When you create your child theme, add a /languages/ folder to your child theme directory and place your new translated files inside that folder.

Add this function to your child theme functions.php file to load your translations from your child theme before the theme will load the main translation from the original parent theme.

function my_translation() {load_child_theme_textdomain( 'language', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_translation' );

Still need help? Contact Us Contact Us