Guided by the Codex doc on Child Themes I have created a twentythirteen-child theme for my website by copying the unchanged index.php file from the parent theme and by creating this simple style.css file:

/*
 Theme Name:   Twenty Thirteen Child
 Theme URI:    http://example.com/twenty-fourteen-child/
 Description:  Twenty Thirteen Child Theme
 Author:       Alexander Farber
 Author URI:   http://afarber.de
 Template:     twentythirteen
 Version:      1
 Tags:         light, responsive-layout, accessibility-ready
 Text Domain:  twenty-thirteen-child
*/
@import url("../twentythirteen/style.css");
.site-header .home-link {
        min-height: 800px;
}

However since my website uses a custom header image I’ve also edited 2 files in WordPress -

1) I have changed the logo image height in the wp-content/themes/twentythirteen/inc/custom-header.php:

#'height'                 => 230,
 'height'                 => 800,

2) I have added #main anchor to the home-link in wp-content/themes/twentythirteen/header.php

<a class="home-link" href="<?php echo esc_url( home_url( '/#main' ) ); ?>"

I realize, that the core WordPress files shouldn’t be edited, because the changes will be overwritten and lost after the next WordPress version update.

But I don’t quite understand, how to put the 2 above changes in the functions.php suggested by the doc?

Could someone please give me some hints?

Read more here: Overriding methods in a child theme


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: