Skip to content

Instantly share code, notes, and snippets.

@bfintal
Created November 12, 2019 02:44
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 bfintal/af8361b391d17a86202a1f97afbbd511 to your computer and use it in GitHub Desktop.
Save bfintal/af8361b391d17a86202a1f97afbbd511 to your computer and use it in GitHub Desktop.
Stackable child theme
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( 'parent-style' ),
wp_get_theme()->get( 'Version' )
);
}
/*
Theme Name: Stackable Child
Description: For the stackable site.
Author: Benjamin Intal
Author URI: https://wpstackable.com
Template: stackable
Version: 1.0.0-6d1b52
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment