Child theme problem

Am unable to comment and ask qns, so done as answer. Point 3 below does identify an error; the rest I expect you’ve covered. I’ve also added my own working enqueuer (but I only needed style.css) ensure the value specified for “Template:” at the top of your CSS matches the value for “Theme:” in parent’s … Read more

Removing an action from wp_footer called in a class that’s inside a bigger class

Because of the way the plugin is structured, the hooked function appears to be ultimately exist on the gallery property of the instance property of the DGWT_JG_Core class. When an instance of DGWT_JG_Core is created, a DGWT_JG_Gallery class is instantiated and added to the gallery property of the DGWT_JG_Core instance. So we need to remove … Read more

Having trouble with WooCommerce Storefront child theme single.php “related posts” modification [closed]

The reason you’re getting a white screen is you never defined “$string”. You only concatenated it. In the future you can find your errors when creating functions by turning wp_debug to true in your wp_config.php file. Here is code that should work: function new_function() { //Arguments: posts, in classifieds category, that are published, and from … Read more

Child theme .css files are not overriding their parent .css files

Try running two seperate functions with an incremental priority.. function my_enqueue_style_one() { wp_register_style( ‘style1’, get_template_directory_uri() . ‘/style1.css’ ); wp_enqueue_style( ‘style1’ ); } add_action( ‘wp_enqueue_scripts’, ‘my_enqueue_style_one’, 10 ); function my_enqueue_style_two() { wp_register_style( ‘style2’, get_stylesheet_directory_uri() . ‘/style2.css’ ); wp_enqueue_style( ‘style2’ ); } add_action( ‘wp_enqueue_scripts’, ‘my_enqueue_style_two’, 20 ); also try registering the stylesheets prior to enqueuing them for … Read more