• Resolved tuulaa

    (@tuulaa)


    Hi,
    I have problems with AMP because of exceeded CSS. AMP Template mode is Transitional so I have amp only in mobile. Now I have MC4WP AMP-warning.

    I have MC4WP Premium version: Now I have to remove some styling Mailchimp signup form. Google AMP has removed some css, so there is the text “Leave this field empty if you’re human:” and the additional empty field in the signup form!

    Have you any idea how to fix that?
    Here is the AMP-warning of above page (in footer widget):

    Original Markup
    <label style=”display: none !important;”>
    Sources
    #1 Type: Theme
    Name: GeneratePress (generatepress)
    Function: generate_construct_footer_widgets()
    Action: generate_footer (priority 5)
    Location: inc/structure/footer.php:141
    #2 Type: Core
    Name: wp-includes
    Function: WP_Widget_Block::widget()
    widget_id: block-70
    Location: widgets/class-wp-widget-block.php:59
    #3 Type: Plugin
    Name: MC4WP: Mailchimp for WordPress (mailchimp-for-wp)
    Function: MC4WP_Form_Output_Manager::shortcode()
    Shortcode: mc4wp_form
    Location: includes/forms/class-output-manager.php:43

    CSS Code
    :root:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-3e2e7c3
    { display:none; }`

    First I have some styling there MC4WP / Forms / Fields / Form code but I removed all. And now there is:
    <p>
    <input type=”email” name=”EMAIL” placeholder=”T?h?n s?hk?postiosoitteesi” required />

    <p>
    <input type=”submit” value=”Tilaan Blogin!” />
    </p>`

    But is something missing from there because of that amp-warning about Label?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @tuulaa,

    Thanks for reaching out to us.

    Is it possible to add the following CSS to any settings in the AMP plugin?

    label.amp-wp-3e2e7c3 {
        display: none;
    }
    Thread Starter tuulaa

    (@tuulaa)

    Hi,
    Thanks for quick answer.
    I solved this problem so that I found the plugin which caused css amount exceeded in amp. I removed that.

    In addition I linked mailchimp form with mailchimp block. It was before shortcode block. Now the form is working in every site.

    Later I can style the form little more.

    Plugin Contributor Lap

    (@lapzor)

    Thanks for letting me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘MC4WP: Mailchimp for WordPress and AMP’ is closed to new replies.