简体   繁体   English

有没有办法将一个图标添加到 MailChimp 嵌入表单的“提交”按钮?

[英]Is there any way to add just an icon to a MailChimp embed form 'submit' button?

I'm using a MailChimp embed form to collect email addresses for a newsletter.我正在使用 MailChimp 嵌入表单来收集时事通讯的电子邮件地址。

My client's design uses just a right arrow instead of the word "Subscribe", however, when I try to put any other value aside from text in the "value" section, it outputs raw data vs font-awesome.我的客户的设计只使用了一个右箭头而不是“订阅”这个词,但是,当我尝试在“值”部分中放置除文本之外的任何其他值时,它会输出原始数据与字体真棒。

Is there a way to manipulate the submit button's "value="Subscribe" in the embedded text to use an arrow like the screenshot attached (Client design)?有没有办法在嵌入的文本中操纵提交按钮的“value="Subscribe"以使用像所附屏幕截图一样的箭头(客户端设计)?

<!-- EMAIL INPUT -->
<div id="mc_embed_signup_scroll">
    <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
    <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
</div>

Client's design:客户设计:

在此处输入图像描述

The result if I try to use Font Awesome as a value:如果我尝试使用 Font Awesome 作为值,结果: 在此处输入图像描述

I've also tried to use CSS and content"" but that didn't have any effect.我也尝试过使用 CSS 和 content"" 但这没有任何效果。

.tertiary_btn.et_pb_button:after {
  font-family: "Font Awesome 5 Free"!important;
  font-weight: 900;
  content: "\f178";
  padding-bottom: 5px;
  display: block;
  font-size: 25px;
  opacity: 1!important;
  transition: none!important;
  margin-left: 8px;
  position: relative;
  margin-top: 4px;
  color: inherit;
}

I also looked into their " fredicons " but I am not sure if these are meant to be used with the embed forms as they too had no effect.我还查看了他们的“ fredicons ”,但我不确定这些是否要与嵌入表单一起使用,因为它们也没有效果。

If you have had to use an arrow vs text within a MailChimp embed form in the past and know the best way to tackle this, please let me know.如果您过去不得不在 MailChimp 嵌入表单中使用箭头与文本,并且知道解决此问题的最佳方法,请告诉我。 Thank you!谢谢!

You can use <button> instead <input type="submit">您可以使用<button>代替<input type="submit">

 button { display: flex; align-items: center; justify-content: space-between; width: 200px; } input[type="text"] { width: 200px; background-image: url("https://cdn-icons-png.flaticon.com/512/271/271228.png"); background-position: 98%; background-repeat: no-repeat; background-size: contain; }
 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <input type="text" placeholder="textfield"> <button>Subscribe <i class="fa fa-chevron-right" aria-hidden="true"></i></button>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM