languages in child theme

Home Forums Jevelin Theme languages in child theme

Home Forums Jevelin Theme languages in child theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Antalvespo
    Participant

    Hi guys it´s possible to have the languages folder in child theme??

     

    If i add this code in the functions.php of the child theme

     

    // Load translation files from your child theme instead of the parent theme
    function my_child_theme_locale() {
    load_child_theme_textdomain( ‘total’, get_stylesheet_directory() . ‘/languages’ );
    }
    add_action( ‘after_setup_theme’, ‘my_child_theme_locale’ );

     

     

    more info here:

    https://wpexplorer-themes.com/total/docs/child-theme-translation-files/

    thanks

    Hi @Antalvespo,

     

    I hope you are well today and thank you for your question.

     

    The following code added in the Jevelin theme already does it so just add translation files in the languages directory.

     

    add_action('after_setup_theme', 'jevelin_setup');
    function jevelin_setup(){
    
    	/* Translations */
    	load_theme_textdomain( 'jevelin', get_template_directory() . '/languages' );
    
    	if ( is_child_theme() ) {
    		load_child_theme_textdomain( 'jevelin', get_stylesheet_directory() . '/languages' );
    	}
    
    	/* Add WooCommerce support */
    	add_theme_support( 'woocommerce' );
    
    	/* Add WooCommerce product image lightbox support */
    	if( jevelin_option( 'wc_lightbox', 'jevelin' ) == 'woocommerce' ) :
    		add_theme_support( 'wc-product-gallery-lightbox' );
    	endif;
    
    }

     

    Best regards,
    Shufflehound team

Viewing 2 posts - 1 through 2 (of 2 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form