hello-theme-child icon indicating copy to clipboard operation
hello-theme-child copied to clipboard

style.css file doesn't work

Open ghost opened this issue 4 years ago • 2 comments

Hi there,

I just install this child theme and have activated it. The functions.php file works perfectly when I added some functions.

I have an issue with the style.css files.

Nothing happens when I apply some code.

I installed the child theme without changing anything else.

Do you have any idea? What can I try?

Thanks for your help. 🙏

ghost avatar Feb 27 '20 16:02 ghost

It's ok, I found in the official Wordpress Codex some code and it's work.

` add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() {

$parent_style = 'hello-elementor'; 

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

}

`

ghost avatar Feb 27 '20 18:02 ghost

Have the same here...

jonathandhn avatar Jan 26 '22 01:01 jonathandhn

+1

Mramorov avatar Mar 16 '23 20:03 Mramorov

Hi,

I downloaded yesterday the child theme and after instalation and activation, the function.php is working but the style.css doesn't work for me, i can't put any modifications there, i have to use the aditional CSS from Wordpress.

Anyone to help me to understand and fix this style.css?

thanks, Eric

EricSleep avatar Apr 28 '23 10:04 EricSleep

Hi, a little update of my issue if someone can help me to understand why it's not working the child theme for me. So, i installed WP from scratch + Hello Elementor parent and child theme on local without any customs, and it's working well, so i don't understand why it's not working on the web ? Thx for your help! Eric

EricSleep avatar May 06 '23 16:05 EricSleep

All the information you need is documented in the Child Themes handbook.

rami-elementor avatar Aug 17 '23 09:08 rami-elementor