wordpress - Hello elementor 子主题中的 style-editor.css
问题描述
我正在使用 Hello Elementor 主题。
我为它创建了一个子主题。
我想在 style-editor.css 中添加一些 CSS。因此,我在子主题文件夹中创建了一个名为“style-editor.css”的文件。
我将这些代码添加到 function.php
<?php
function generate_child_setup() {
add_theme_support('editor-styles');
add_editor_style('block-editor.css');
}
add_action('after_setup_theme', 'generate_child_setup');
但没有任何变化!
我正在使用经典编辑器
希望可以有人帮帮我!
解决方案
推荐阅读
- asp.net-core-webapi - CreatedAtAction 在带有 Api 版本控制的 Asp.Ner Core 3.1 中返回“没有路由与提供的值匹配”500 错误
- amazon-web-services - 如何配置 lambda 策略以将跟踪推送到 xray 以实现最低权限?
- sql - MsSqlServer 正则表达式
- laravel - Laravel Vue js 认证中间件
- node.js - React JS - npm 测试失败,没有路由器必须在路由器内
- backtrace - threadx 堆栈顶部的回溯有什么用途,为什么它的大小会变化?
- asp.net - 将参数传递给 OData 服务初始化
- c# - 在升级期间以编程方式将配置部分添加到 App.config
- go - 使用上下文停止执行简单函数
- wordpress - 如何在 Woocommerce REST API 中按元筛选产品?