Commit c8575d5b by Simone

style child in footer

parent 86cf4b3d
......@@ -4,9 +4,9 @@ add_action('wp_enqueue_scripts', 'laniakea_enqueue_parent_theme_style');
function laniakea_enqueue_parent_theme_style()
{
$min = get_stylesheet_directory_uri() . '/style.min.css';
/* $min = get_stylesheet_directory_uri() . '/style.min.css';
$style = file_exists($min) ? $min : get_stylesheet_directory_uri() . '/style.css';
wp_enqueue_style('laniakea-child-style', $style, array('laniakea-style'));
wp_enqueue_style('laniakea-child-style', $style, array('laniakea-style')); */
/*
// Inline Compressed Child Style:
......@@ -20,6 +20,13 @@ function laniakea_enqueue_parent_theme_style()
add_action('after_setup_theme', 'laniakea_child_theme_setup');
function laniakea_footer_styles(){
$min = get_stylesheet_directory_uri() . '/style.min.css';
$style = file_exists($min) ? $min : get_stylesheet_directory_uri() . '/style.css';
wp_enqueue_style('laniakea-child-style', $style, array('laniakea-style'));
}
add_action( 'get_footer', 'laniakea_footer_styles',99 );
function laniakea_child_theme_setup()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment