首页 > 解决方案 > Wordpress 儿童主题打破了网站的外观

问题描述

我正在使用来自 StylemixThemes 的Splash 主题。我正在尝试创建一个子主题以编辑某些内容,但是当我激活它时,我没有得到与父主题相同的结果。

在子主题文件夹中,我有style.cssfunctions.php。这是functions.php代码

 <?php

add_action('wp_enqueue_scripts', 'enqueue_parent_theme_styles'); function enqueue_parent_theme_styles() {
    wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css'); }

我附上了父子主题的屏幕截图以显示差异。

父母

孩子

我想知道是否有解决方案,或者我是否缺少某些东西。

提前致谢!

标签: phpwordpressthemesparent-child

解决方案



推荐阅读