wordpress 怎么让子主题继承父主题的所有配置?

2017-02-05 05:20:30 +08:00
 lancelotorochi

花了两天时间折腾了一个主题。今天下了一个子主题,可是一切换子主题就立马回到了解放前。网上查了半天无果(@import 什么的), 还有说是需要复制模板文件到子主题目录下,可是目录在哪看?怎么进入怎么复制?

需求:让子主题继承所有父主题的配置,切换成子主题后不需要任何更改,效果和父主题一样即可。求助大神。

以下是子主题的说明:

模板 此主题使用从父主题“ Businessx ”继承下来的模板。

模板函数 (functions.php)

样式 样式表 (style.css)

/* Theme Name: Businessx Child Theme URI: http://www.acosmin.com/theme/businessx/ Description: BusinessX Child Theme Author: Acosmin Author URI: http://www.acosmin.com Template: businessx Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: custom-header, grid-layout, right-sidebar, sticky-post, translation-ready, threaded-comments, featured-images, custom-menu, custom-colors, theme-options, footer-widgets, portfolio, blog, news, e-commerce Text Domain: businessx-child */

/* For more info on child themes access this page: https://codex.wordpress.org/Child_Themes You can add your customizations below */

@import url("../businessx/style.css");

3155 次点击
所在节点    WordPress
1 条回复
lancelotorochi
2017-02-06 16:26:28 +08:00
T.T

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/338158

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX