Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style.css file doesn't work #12

Closed
ghost opened this issue Feb 27, 2020 · 7 comments
Closed

style.css file doesn't work #12

ghost opened this issue Feb 27, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Feb 27, 2020

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
Copy link
Author

ghost commented Feb 27, 2020

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

}

`

@jonathandhn
Copy link

Have the same here...

@Mramorov
Copy link

+1

@EricSleep
Copy link

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
Copy link

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

@rami-elementor
Copy link
Member

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

@Milad-jfr
Copy link

Milad-jfr commented Jun 20, 2024

@jonathandhn @EricSleep
seems the problem is with style version and cache related something ,
check this out :
#48 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants