Wordpress 2014儿童主题设置



我在激活wordpress 2014主题的子主题时遇到问题。我为一个二十岁的孩子创建了一个文件夹。我有一个带有的style.css

1 /*  
2 Theme Name:Twenty Fourteen Child
3 Version: 1.0
4 Theme URI: link
5 Description: A basic starter child theme for Twenty Fourteen 
6 Author: Tim 
7 Author URI: link
8 Template: twentyfourteen
9 License: GPL 
10 License URI: ...
11 */

和带有的functions.php

 1<?php
 2 add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
 3 function enqueue_parent_styles() {
 4         wp_enqueue_style( 'parent-style',  get_template_directory_uri().'/style.css');
 5 }

我正在运行另一个主题相同、代码相同的wordpress网站,运行良好。这两个网站都安装在子目录中并且style.css中的Template名称与父主题的目录名称匹配。我基本上只是复制了这两个文件。

当我激活子主题时,菜单结构被破坏。侧面包含左侧和顶部的菜单,但现在它们都合并到顶部菜单中。有人知道这里可能出了什么问题吗!?

如果您已经设置了主题,然后激活了子主题,则必须重新分配菜单的真实外观->menu。

最新更新