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

非常感谢您的帮助。

标签: wordpresswordpress-themingelementor

解决方案


推荐阅读