Earlier stylesheet not overriding later one

I looked at my child theme’s functions.php and I found that I had commented out the line to enqueue the child style.css. I’m guessing that the stylesheet is loaded automatically because that is the active theme. I would suggest you try not explicitly loading your child theme’s stylesheet and see if that helps. P.S. Only … Read more

How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme

It is very best described in the WordPress Child theme codex page. Basically to load child theme and parent theme stylesheet files, you have to just add following code in the functions.php file of your child theme. function my_theme_enqueue_styles() { $parent_style=”parent-style”; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘styles’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style, ‘enough_base’ … Read more

Is this the correct way to enqueue style sheets from parent theme and then from child theme in wordpress?

You can try below code. I think there is no need to use wp_enqueue_scripts twice to enqueue the parent and child theme style sheets separately. Also the use of echo get_stylesheet_uri( ); in the enqueue_child_theme_styles function doesn’t make any sense. function my_theme_enqueue_styles() { $parent_style=”styles”; wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’, array(‘enough_base’) ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . … Read more

Child theme with flatsome theme crashes website

I always find it best to start simple, make something that works, then build another tiny piece. That way it’s easier to determine at what point something is going wrong. I would suggest removing everything except the parent “flatsome” theme from your server. (Keep your backups locally, just don’t have them installed in WP.) Next, … Read more