花了两天时间折腾了一个主题。今天下了一个子主题,可是一切换子主题就立马回到了解放前。网上查了半天无果(@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");
1
lancelotorochi OP T.T
|