首页 > 解决方案 > 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');

但没有任何变化!

我正在使用经典编辑器

希望可以有人帮帮我!

标签: wordpress

解决方案


推荐阅读