Comments VisibleSites started the conversationOctober 30, 2019 at 12:10pmHi. I'm trying to set up a child theme. I'm using <?phpadd_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );function my_theme_enqueue_styles() { $parent_style = 'scalia-style'; 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') );}in functions. I tried using 'scalia-style' to enqueue style but its breaking site. What should I use to set up child theme properly? Many thanks. 7,092Oliver repliedOctober 30, 2019 at 12:33pmHi,Child theme in attach Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
Hi. I'm trying to set up a child theme. I'm using
<?php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
$parent_style = 'scalia-style';
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')
);
}
in functions. I tried using 'scalia-style' to enqueue style but its breaking site. What should I use to set up child theme properly? Many thanks.
Hi,
Child theme in attach
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver