All of my custom Bootstrap styles are not working in my child theme!

In your child theme’s function.php file, find the enqueue function and add it there instead of using @import in your CSS. For example: function my_scripts_and_styles() { wp_enqueue_style( ‘main-style’, get_stylesheet_uri() ); wp_enqueue_style( ‘bootstrap-style’, get_template_directory_uri() . ‘/css/bootstrap.min.css’, array( ‘main-style’, ”, true ); if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) { wp_enqueue_script( ‘comment-reply’ ); } … Read more

Child Theme Customizer not working

I realize that I did not know that you needed an extra step for the functions.php. Here is the last step I needed. <?php function my_theme_enqueue_styles() { $parent_style=”parent-style”; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme. 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’) ); } add_action( … Read more

What $handle does WordPress use for a theme’s implicit style.css?

Themes’ style.css files are not enqueued for printing automatically (see the developer handbook) – instead this responsibility is left to the theme developer. As such, you’ll need to delve into the parent theme’s source files to determine the appropriate handle. That said, developers sometimes default to using ‘theme’ or ‘style’ handles. Note that the developer … Read more

Child theme not importing parent styles

If I open syyle.css from original theme I see */ /* Themely is based off of Understrap which uses the Underscores starter theme merged with the Bootstrap Framework. The default styles can be found in /css/theme.css and /css.theme.min.css. The styles loaded when I enqueued theme.css ad theme.min.css files. My functions.php file now <?php add_action( ‘wp_enqueue_scripts’, … Read more

Javascript asset not enqueuing with the rest

Your second wp_enqueue_script() contains the same handle (the same ID) as the first wp_enqueue_script(). The handle is the ID by which a registered script is known to WordPress internally. If you use this ID a second time, the second script won’t be registered. A working example could be this one: <?php add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles_and_scripts’ ); … Read more

How can I remove all traces of a theme?

The widget errors are the only ‘real’ errors. The header related errors are just caused by the error notices being output before the HTTP headers (including the one output in misc). Fixing that error would solve the others. The problem with the widgets is that they are written with out of date PHP (it doesn’t … Read more