【问题标题】:Missing Gravity Form Fields缺少重力表单字段
【发布时间】:2016-09-18 05:45:34
【问题描述】:

我不小心隐藏了我为网站页脚创建的重力表单的字段,我认为这是在我添加 CSScode 以减少表单字段之间的间距时发生的。

请问我该如何撤消此操作,因为我只能看到提交按钮和表单小部件标题。

Here's a link to the website if needed.

这里还有一个页脚小部件的屏幕截图:

谢谢

body .gform_wrapper ul li.gfield {
        margin-top: 0px !important;
        padding-top: 0;
    }
    .block-content ul li {
          margin-bottom: 0 !important;
          margin-top: 0 !important;
        }
    .gform_body ul li .ginput_container select,.gform_body ul li .ginput_container input{
            margin-bottom: 0px;
    }
    .gform_wrapper .top_label .gfield_label {
        display: none !important;
    }

【问题讨论】:

  • 你好,贝基安倍。看看下面我的回答,如果有帮助,请接受答案,或者,如果没有帮助,请告诉我,以便我们继续尝试解决您的问题: )
  • 对不起,我还没有真正习惯这个平台。

标签: wordpress css gravity-forms-plugin


【解决方案1】:

由于样式表中的不同规则,您的字段被隐藏了。

检查您网站上的网络元素向我展示了这一点:

style.css 中的第 159 行

.gform_wrapper.two-column_wrapper ul.gform_fields, .gform_wrapper.two-column_wrapper ul.gform_column li.gsection:first-child {
    display: none;
}

您的第一个声明:.gform_wrapper.two-column_wrapper ul.gform_fields 是重力表单中表单域的父容器。删除这个(当然还有分隔两个声明的逗号)将解决这个问题。

出于详细目的,该行代码将变为:

.gform_wrapper.two-column_wrapper ul.gform_column li.gsection:first-child {
    display: none;
}

我在 Firefox 中使用 Firebug 对此进行了测试,结果显示如下:

【讨论】:

    猜你喜欢
    • 2011-08-03
    • 1970-01-01
    • 1970-01-01
    • 2021-01-30
    • 1970-01-01
    • 2014-04-12
    • 2011-03-31
    • 2016-03-07
    • 1970-01-01
    相关资源
    最近更新 更多