- 确认你已经安装并激活了 Elementor Pro 插件。
- 打开页面或帖子的编辑器,确保你在使用 WordPress 经典编辑器而不是 Gutenberg 编辑器。
- 在编辑器顶部的工具栏中找到“Edit with Elementor”按钮。如果按钮不在那里,可以尝试以下方法来解决:
a. 确认您使用的是最新版本的 Elementor Pro。如果不是,请升级。
b. 查看您的 WordPress 主题是否与 Elementor Pro 兼容。如果不是,请考虑更换主题或联系主题作者以解决问题。
c. 检查您的 WordPress 主题是否通过了 WordPress 主题检查。如果没有,请尝试解决问题并重新提交主题。
如果仍然无法解决问题,请尝试将以下代码添加到您的 WordPress 主题的 functions.php 文件中:
function theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'admin_init', 'theme_add_editor_styles' );
请确保将“custom-editor-style.css”替换为您创建的样式表的文件名。通过这种方式,将启用与您的主题兼容的样式表,并且“Edit with Elementor”按钮应该重新出现。