php - Wordpress 儿童主题打破了网站的外观
问题描述
我正在使用来自 StylemixThemes 的Splash 主题。我正在尝试创建一个子主题以编辑某些内容,但是当我激活它时,我没有得到与父主题相同的结果。
在子主题文件夹中,我有style.css和functions.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'); }
我附上了父子主题的屏幕截图以显示差异。
我想知道是否有解决方案,或者我是否缺少某些东西。
提前致谢!
解决方案
推荐阅读
- java - JDK 更新后,JShell 不再在下一行打印输出
- node.js - 如何更新猫鼬文档中的值?
- ffmpeg - FFMPEG:使用 ffmpeg 命令时麦克风捕捉到太多噪音
- google-apps-script - 带有 replaceAllText 的正则表达式 Google Apps 脚本
- php - 在两个 PHP 变量中拆分 jquery 的 Daterange 值
- cross-compiling - 关于介子、交叉文件和STM32
- html - Django 模板未更新所选选项
- javascript - 动态访问对象属性
- bash - 来自 ~/.azure/config 的 Azure CLI 环境变量
- c# - 使用 Mailkit v2.9.0 从电子邮件中获取发件人