指导者the Codex doc on Child Themes 我创建了一个twentythirteen-child
的主题my website 通过复制未更改的index.php
从父主题创建style.css
文件:
/*
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;
}
然而,自my website 使用自定义标题图像我还在Wordpress中编辑了2个文件-1) 我在中更改了徽标图像的高度wp-content/themes/twentythirteen/inc/custom-header.php:
#\'height\' => 230,
\'height\' => 800,
2)我添加了#main
锚定到home-link
在里面wp-content/themes/twentythirteen/header.php<a class="home-link" href="<?php echo esc_url( home_url( \'/#main\' ) ); ?>"
我意识到,核心WordPress文件不应该被编辑,因为在下一次WordPress版本更新后,更改将被覆盖并丢失。但我不太明白,如何把上面的2个变化functions.php
医生建议的?
有人能给我一些提示吗?