How to overwrite template.php file

Got it. In your parent template.php. Some function were not wrapped in: if( !function_exists(‘function_name’) ) { // function content } So you won’t able to override that function. Make sure to wrap parent function that tend to be override in child by above code. FYI, for function, you don’t need to create a file with … Read more

Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme

Your child theme functions.php loads before the parent theme’s, so you’re trying to remove the action before it’s added by the parent theme. Hook after_setup_theme to remove/add, which is executed after both child and parent load. add_action( ‘after_setup_theme’, ‘wpd_wp_head_function’ ); function wpd_wp_head_function() { remove_action( ‘wp_head’, ‘woothemes_wp_head’, 10 ); add_action( ‘wp_head’, ‘woothemes_wp_head’, 2 ); }

Updating WordPress Theme Files

For themes installed from official repository WordPress will have much of the process automated, offering update and handling the process. For third party themes it’s a manual process (unless they implement similar update functionality themselves). You can upload a theme archive via Appearance > Themes > Add new > Upload theme in WordPress admin. If … Read more

wp_enqueue wont work on some files?

That isn’t how functions.php works in WordPress. The functions.php in your theme root directory is loaded into WordPress environment by default as long as your theme is activated. It’s used as a plugin to add features and functionality of your theme to WordPress. You should take a look at theme functions and including css & … Read more

child parent styles enqueue order

Looking at the id’s in your rendered code, the name of your parent style seems to be ‘basic-css’. That would mean you need array(‘basic-css’) as the dependency in your wp_enqueue_style. However, in the code the child style seems to be called ‘defaultbasic-css’, while you enqueue it as ‘child-style’. So it looks like there is some … Read more