Add to functions.php
:
<?php
/**
* Loads the child theme's translated strings.
*/
function pine_child_setup() {
load_child_theme_textdomain( 'pine_child', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'pine_child_setup' );
If you want to stop loading css or javascript files put wp_deregister_style( $handle )
or wp_deregister_style( $handle )
into pine_child_scripts
function which is inside functions.php
file.
Example:
<?php
/**
* Enqueue scripts and styles.
*/
function pine_child_scripts() {
wp_deregister_style( 'pine-style' );
wp_enqueue_style( 'pine-child-style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'pine_child_scripts' );