Wordpress Elementor。我的自定义 HTML 未呈现

问题描述 投票:0回答:1

我从 Mailchimp 获得了一个自定义电子邮件注册表单,并使用 elementor 自定义 HTML 在我的 WordPress 网站上实现了它,它有点有效,但问题是,当我注销我的 WordPress 会话并以访问者身份检查网站时,自定义 HTML 会被写入作为文本而不是作为 html 文件读取,并且一些标签会被忽略,例如 styleforminputscript

一切都被保存到数据库中,它只是没有按应有的方式读取代码。我多次清除所有缓存。

这是我试图插入的代码,并在我注销时保留它

<!-- Begin Mailchimp Signup Form -->

<link href="//cdn-images.mailchimp.com/embedcode/classic-071822.css" rel="stylesheet" type="text/css">
<style type="text/css">
    #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif;  width:100%;}

    /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
       We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */

</style>




<div id="mc_embed_signup">
    <form action="https://gmail.us8.list-manage.com/subscribe/post?u=9eedbcb189ca63a07ad3fc7e8&amp;id=96681ba87c&amp;f_id=00546ae0f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self">
        <div id="mc_embed_signup_scroll">
        
 
<div class="mc-field-group">
    <label for="mce-EMAIL">Seu melhor email:  
</label>
    <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" required>
    <span id="mce-EMAIL-HELPERTEXT" class="helper_text"></span>
</div>
    <div id="mce-responses" class="clear foot">
        <div class="response" id="mce-error-response" style="display:none"></div>
        <div class="response" id="mce-success-response" style="display:none"></div>
    </div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_9eedbcb189ca63a07ad3fc7e8_96681ba87c" tabindex="-1" value=""></div>
        <div class="optionalParent">
            <div class="clear foot">
                <input type="submit" value="Garantir meu lugar" name="subscribe" id="mc-embedded-subscribe" class="button">

            </div>
        </div>
    </div>
</form>
</div>

<!--End mc_embed_signup-->

已登录

已退出

html wordpress mailchimp elementor
1个回答
0
投票

我也遇到了同样的问题,那就是我使用了错误的 WordPress 元素/小部件。请务必选择名为“HTML”的元素或小部件,NOT自定义 HTML。您可以通过在顶部搜索栏中搜索来获取该元素。

© www.soinside.com 2019 - 2024. All rights reserved.