V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lancelotorochi
V2EX  ›  WordPress

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

  •  
  •   lancelotorochi · 2017-02-05 05:20:30 +08:00 · 3127 次点击
    这是一个创建于 2609 天前的主题,其中的信息可能已经有所发展或是发生改变。

    花了两天时间折腾了一个主题。今天下了一个子主题,可是一切换子主题就立马回到了解放前。网上查了半天无果(@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 条回复    2017-02-06 16:26:28 +08:00
    lancelotorochi
        1
    lancelotorochi  
    OP
       2017-02-06 16:26:28 +08:00
    T.T
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4597 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:51 · PVG 17:51 · LAX 02:51 · JFK 05:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.