Skip to content

Instantly share code, notes, and snippets.

@vsalda
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsalda/63e63ad8364ff7aa13a8 to your computer and use it in GitHub Desktop.
Save vsalda/63e63ad8364ff7aa13a8 to your computer and use it in GitHub Desktop.
<?php
/**
* Configurar el textdomain de nuestro tema hijo.
*
* Utilizamos el hook 'after_setup_theme' y enganchamos nuestra función.
* Las traducciones deben ir dentro del directorio /languages/ en nuestro tema hijo.
*/
function twentyfourteen_child_theme_setup() {
load_child_theme_textdomain( 'twentyfourteen-child-theme', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'twentyfourteen_child_theme_setup' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment