Can’t override footer.php in child theme

My friend, just take a look at their codex here https://codex.wordpress.org/Function_Reference/get_footer and you will know how. In your case, no need to add these require_once get_stylesheet_directory() . ‘/footer.php’; require_once get_stylesheet_directory() . ‘/footer-set.php’; require_once get_stylesheet_directory() . ‘/footer-tag.php’; You only need to repair your tt_get_footer like this //Get Theme Specific Footer function tt_get_footer() { $footer = get_option(‘tt_footer_layout’); … Read more

Child theme implementation issues

There is most likely some issues about using get_template_directory_uri() or get_stylesheet_directory_uri(). According to WordPress Code reference: get_template_directory_uri() function returns the URL to the root theme. If a child theme is used and you want to return the URL to the current child theme, use get_stylesheet_directory_uri() instead. Also, it is noted that importing the parent CSS … Read more

Using the child theme functions.php to change the customizer.php on parent theme

Put this code in function.php. create custom section in customizer for logo : <?php add_action(‘customize_register’, ‘theme_footer_customizer’); function theme_footer_customizer($wp_customize){ //adding section in wordpress customizer $wp_customize->add_section(‘footer_settings_section’, array( ‘title’ => ‘Footer Text Section’ )); //adding setting for footer logo $wp_customize->add_setting(‘footer_logo’); $wp_customize->add_control(new WP_Customize_Upload_Control($wp_customize,’footer_logo’,array( ‘label’ => ‘Footer Logo’, ‘section’ => ‘footer_settings_section’, ‘settings’ => ‘footer_logo’, ))); }

Loading Scripts on Specific Pages

I’d suggest moving the script registering into the init action, and moving the enqueue(s) into a callback hooked onto wp_print_scripts. Eg. add_action( ‘init’, ‘register_those_scriptsNstyles’ ); function register_those_scriptsNstyles() { wp_register_script( .. your script params .. ); wp_register_style( .. your style params .. ); ..etc.. } add_action( ‘wp_print_scripts’, ‘enqueue_those_scriptsNstyles’ ); function enqueue_those_scriptsNstyles() { if( !is_page( ‘some-page’ ) … Read more