wordpress - Wordpress:使用 elementor 编辑器,但使用自定义标题和 foofer 包装
问题描述
我正在使用 Elementor 的免费版本。我想在我的“帖子”中使用 Elementor 编辑器,但用我的自定义“页眉”和“页脚”包装编辑器。
我看到有一个函数叫做:Frontend::apply_builder_in_content
。我想知道,如何将它放入我的single.php/page.php
,以便我可以同时拥有 elementor 编辑器和编辑器的自定义“包装器”?
这是我的样本single.php
:
$html = file_get_contents("http://my_domain_url");
// This function extract the content area that will apply elementor into
list($beginHTML, $endHTML) = explode("_content_area_separator_", $html);
print $beginHTML;
// I expect Elementor is started here: Start
the_post();
the_content();
// I expect Elementor is started here: end
print $endHTML;
非常感谢您的帮助。
解决方案
推荐阅读
- git - git 错误:`could not revert`,但没有详细信息
- javascript - 如何使用 react-chartjs-2 强制 Chart.js 轴的最小值和最大值?
- python - 多个视频并排与 IPython Display
- r - 将基因型格式“12”转换为 ACTG 格式
- python - Python中的SQL查询格式化
- logic - 给定多人的问题、答案和评分,找出正确答案
- unity3d - 为什么我的玩家(带有对撞机和刚体)在墙壁上出现故障?
- sql - 将 generate_series 选择日期语句插入数组列
- visual-studio-2017 - 缺少命名空间,但组件文件夹中有 dll
- awk - 如何获取包含某个字符串的行和包含另一个字符串的另一行之间的所有行加上之前的行