admin管理员组文章数量:1122846
I built a custom plugin for a website Using Divi and I am facing a problem right now getting it to display in the production environment of the website. Here are the details:
Since you can't really add a plugin to a page created with Divi like a module, I had to add my plugin there by downloading another plugin that generates a short code (the plugin's name is Reusable Blocks Extended). I generated the short code and added it to my web page like this: [shortcode]
inside the code module. This caused problems because it turns out that a shortcode should actually be added like this: <?php echo do_shortcode("[shortcode]"); ?>
. Before making that change, the plugin displayed in the Divi Builder but no changes were saved.
Now the Divi builder is saving changes (albeit, with a piece of the shortcode now showing underneath the plugin), but the display is gone in the production environment. I checked the browser console but there were no errors, none to be found in debug.log either except for errors that relate to deprecated functions in functions.php.
If anyone can spot a missing step or give any recommendations, it would be greatly appreciated. Thanks in advance!
The plugin in the Divi Builder.
The plugin in the production environment (after exiting the Divi Builder).
The HTML from the browser console:
<div class="et_pb_row et_pb_row_4">
<div class="et_pb_column et_pb_column_2_3 et_pb_column_9 et_pb_css_mix_blend_mode_passthrough">
<div class="et_pb_module et_pb_heading et_pb_heading_2 et_pb_bg_layout_">
<div class="et_pb_heading_container"><h1 class="et_pb_module_heading">News</h1></div>
</div>
<div class="et_pb_module et_pb_code et_pb_code_2">
<div class="et_pb_code_inner">
</div>
</div>
</div>
<div class="et_pb_column et_pb_column_1_3 et_pb_column_10 et_pb_css_mix_blend_mode_passthrough et-last-child et_pb_column_empty">
</div>
</div>
本文标签: Custom Plugin not Displaying in the Website Production environment (Divi)
版权声明:本文标题:Custom Plugin not Displaying in the Website Production environment (Divi) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736307901a1933471.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论