From e5a069ee7e5e6f889b3ec8079e9902d8f2dae867 Mon Sep 17 00:00:00 2001 From: Mashiro Date: Fri, 25 Oct 2019 20:11:58 +0800 Subject: [PATCH] Initial commit --- README.md | 16 ++++++++++++++++ functions.php | 6 ++++++ screenshot.png | Bin 0 -> 2288 bytes style.css | 15 +++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 README.md create mode 100644 functions.php create mode 100644 screenshot.png create mode 100644 style.css diff --git a/README.md b/README.md new file mode 100644 index 0000000..d3c39a9 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Sakura 主题子主题 + +安装方法与普通主题相同,将 `Sakura-child` 文件夹上传到 `/wp-content/themes/` 目录即可,安装后启用 Sakura-child 主题。 + +之后你可以在子主题中添加自己的修改,这样父主题更新的时候,你的修改将会被保留。 + +用官方的话来讲: + +> If you are making extensive customizations – beyond styles and a few theme files – creating a parent theme might be a better option than a child theme. Creating a parent theme allows you to avoid issues with deprecated code in the future. This needs to be decided on a case-by-case basis. +> +> 如果你的改动较大,不推荐子主题。此外子主题可能和今后的父主题不兼容。 + +关于子主体的更多说明可以参考: + +- [简单的子主题教程(中文)](https://blog.wpjam.com/article/child-themes/) +- [详尽的WordPress子主题官方文档(英文)](https://developer.wordpress.org/themes/advanced-topics/child-themes/) \ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..3b6229f --- /dev/null +++ b/functions.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000000000000000000000000000000000000..081875f3bc6fdb9954be55cbe2e6d044ce33300e GIT binary patch literal 2288 zcmeHJzi-n(6uzW@qDqy@2-C?C8?nz$6W3NumBa~+ghQ1^A|n_3(pas1#=bO8Cg_HQ zgoM~(WZ}mSQY(;<5G!5y2Uw8!7dWR$%0L*HGSqsK@14Hyd+*(S!#&<<-d0MZ=*QXeyEzVqQK%=6zhR_m}`+G9f;5>R$%m%xUH_ehIiXY}9;DFLt|xa|(> zSa)=rdLm9RV(bN+4M1rt4zRsX80?Zg*EfV;?~euOI)-qsU?D50lD@k=4$1Dg*|x{~ zw&n<1w_qvOxqwF)hOu|xM|x}s6J4FJlWj?W6A0TkgtMkP)())Fkide7ayBX=Sd>LM zzoDw?O{gFlNl1}oB`2$TUeOVP(@)^lLZ_#<%=)wz&kUi@SfESNa5xl)d69;DlB{W3 zqM;}`j>ttLpW!&?N7A~z2clwmks80h} z-7P>1+peGF6TD^V4L@Sow@Je^1g;>uuA?hutynWRR3vXIvRqTOa#<^*x>6`qD<(qf zjB8SR;1QqAxXw9ub0Igef*0`0CJEg`;?zUx!O6(FySSIaLcJ;1S=>u;Ay?wfNXf0LXkoC&xeV(NnYX;_zAe z;oEu|JXv4T$X)`=8Yh|5at5k^rH$n^+H-K>wEyt)h10mD#n)g3te;+a^zz2%Z^;{^ MQEQrSD)*0m0}cNMiU0rr literal 0 HcmV?d00001 diff --git a/style.css b/style.css new file mode 100644 index 0000000..0eacc7f --- /dev/null +++ b/style.css @@ -0,0 +1,15 @@ +/* +Theme Name: Sakura-child +Theme URI: http://childtheme-generator.com/ +Description: Sakura-child is a child theme of Sakura, created by ChildTheme-Generator.com +Author: Mashrio +Author URI: http://childtheme-generator.com/ +Template: Sakura +Version: 1.0.0 +Text Domain: Sakura-child +*/ + + +/* + Add your custom styles here +*/ \ No newline at end of file