themejack / pine-child

Child theme for Pine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pine Child

Customization


Load languages from child theme

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' );

Disable parent theme style and scripts

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' );

About

Child theme for Pine.


Languages

Language:PHP 69.7%Language:CSS 27.9%Language:JavaScript 2.4%