Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #1079301

    Hi,

    – i’d like to have mail-chimp form on a single horizontal line, like something in the documentation (https://kriesi.at/documentation/enfold/mailchimp-signup/ ) under ” Playing with columns”. The example there is all HTML and no CSS and in the Mail Chimp element i can’t find a way to assign classes to each element of the form.

    – Also how do i change the text on the submit button?

    Thanks and regards,
    Steffen

    #1080036

    Hey sugadaddy,

    There is no need for classes for all elements.
    Please refer to the solution posted here:

    Best regards,
    Victoria

    #1080137

    Thanks Victoria, but it’s not working. I’ve renamed the 1/2 layout-container horizontal-mailchimp as instructed. Neither flex nor inline is working, either.

    BTW I’ve used this code fron the other thread you posted:

    .horizontal-mailchimp .mc-field-group {
    display: block;
    width: 24vw;
    float: left;
    }
    .horizontal-mailchimp .clear {
    float: right;
    margin-top: -57px;
    margin-right: 12vw;
    }

    #1081627

    Hi,

    Thanks for the update.

    Are you using the theme’s mailchimp signup element? That css code is for the mailchimp embed code, so it’s not going work for the default mailchimp signup element. If you want to follow the documentation, you have to use this plugin.

    // https://wordpress.org/plugins/mailchimp-for-wp/

    Docs: https://kriesi.at/documentation/enfold/mailchimp-signup/#mailchimp-4-wordpress-plugin-integration > Playing with columns

    Best regards,
    Ismael

    #1084347

    Thanks Ismael. Why can i not apply flex or inline to the input and button element?

    #1085736

    Hi,

    You can’t use that particular css code because the html or structure of the theme’s mailchimp signup element is different from the embedded ones. You have to use the embed version of the form because that is where the css code is intended for. Would you mind providing a screenshot of the layout that you want to have? You can upload the screenshot to imgur or dropbox.

    Best regards,
    Ismael

    #1089269

    Hi Ismail,

    here’s the layout with the two elements side by side ( link to layout ). Also note the pre-entered text. Where could I add this? And how can i change the text on the button?

    Thanks and regards,
    Steffen

    • This reply was modified 5 years, 9 months ago by sugadaddy.
    #1089799

    Hi,

    You can use the theme’s mailchimp signup element instead. Insert two 1/2 columns, place the signup form in the second one and the add a text/code block on the first. Use that text/code block to create the text beside the form.

    Best regards,
    Ismael

    #1090157

    i believe that’s what i did (check out my site in the private comment section). I would like to know how to align the form elements (text input/button) side by side. And also how to change the text in the button and generate a preview text in the text input area.

    #1090810

    Hi,

    The following custom css code hides the subscription button.

    #av_section_6 > div > div > div > div > div.flex_column.av_one_half.flex_column_div.av-zero-column-padding.avia-builder-el-29.el_after_av_one_half.avia-builder-el-last.horizontal-mailchimp > form > fieldset > p.form_element.first_form.form_element.form_fullwidth.av-last-visible-form-element.modified_width {
        display: none !important;
    }

    You have to remove it or replace it with this css code to align the fields.

    .avia-mailchimp-form fieldset p {
        display: block;
        float: left;
        clear: none !important;
    }

    Best regards,
    Ismael

    #1093752

    sorry, i don’t get it, are you suggesting two separate Mailchimp elements side by side? If yes, how does the submit button know which adress was entered if the two aren’t connected? Could you also please adress the other questions?

    #1094262

    Hi,

    Thanks for the update.

    Sorry for the confusion. The first css code above was added somewhere in the Quick CSS field or the style.css file. You have to remove it because it’s hiding the signup fields. After removing the first css code, add the second one to align the mailchimp fields.

    Best regards,
    Ismael

    #1094338

    ah ok! Thanks, Ismael. That aligned the elements side by side. Great! But they should align on the right side of their container. If I apply float:right the order of the elements gets switched up.

    And the other two questions:

    – How do I change the text on the button?
    – How do I add a preview text in the input element like “you email” or something like that?

    • This reply was modified 5 years, 8 months ago by sugadaddy.
    #1095154

    Hi,

    Thanks for the update.

    1.) You have to modify the \config-templatebuilder\avia-template-builder\php\html-helper.class.php file directly. Look for this code around line 1743 inside the “mailchimp_list” function.

    'label' 	=> __( "Subscribe" , "avia_framework" ),
    

    2.) The subscribe form input fields don’t contain placeholder attributes by default, but you can use a script to manually add the attribute. Try this script in the functions.php file:

    add_action('wp_footer', 'ava_add_mailchimp_input_placeholder');
    function ava_add_mailchimp_input_placeholder(){
    	?>
    	<script type="text/javascript">
                $(function() {
                    var email = $('.avia-mailchimp-form #avia_0_1');
                    var label = email.prev().text();
                    email.attr('placeholder', label);
                })(jQuery);
    	</script>
    	<?php
    }

    Best regards,
    Ismael

    #1095516

    I’m not proficient at JS. Where do i add the text within the JS function you posted? Thanks-

    #1096077

    Hi,

    Thanks for the update.

    You can add that code in the functions.php file. The actual script will be added in the frontend before the closing body tag.

    Best regards,
    Ismael

    #1096588

    no, i meant where do i change the displayed text. When i enter the script the displayed text is “E-Mail Address*”. I would like to change that but it is not obvious to me where i would alter it.

    Also, i’ve changed the html-helper.class.php script and it had no impact.

    • This reply was modified 5 years, 8 months ago by sugadaddy.
    #1097499

    Hi,

    Thanks for the update.

    Find this line:

    email.attr('placeholder', label);
    

    Change label to a string or a custom text.

    Example:

    email.attr('placeholder', 'My text');
    

    Best regards,
    Ismael

    #1097509

    awesome, thanks Ismael. Now how do i get the input and button elements to align to the right side of their container?

    #1097915

    Hi,

    Thanks for the update.

    You can add this css code to push the fieldset to the right of the container.

    .chimpy.avia-mailchimp-form fieldset {
        position: relative;
        left: 145px;
    }

    Adjust the value as needed. You may need to add a few css media queries to adjust the left position on smaller screens.

    Best regards,
    Ismael

    #1098419

    thanks. So, there is no way to float or flex them to the right?

    #1099752

    Hi sugadaddy,

    Best regards,
    Victoria

    #1099833

    Hi Victoria, i would like to align the input and button elements to the right side of its container, like this https://pasteboard.co/IeoMOJr.png (right click & open in new tab)

    • This reply was modified 5 years, 8 months ago by sugadaddy.
    #1100352

    Hi,

    Thanks for the update.

    Did you try the css code above?

    thanks. So, there is no way to float or flex them to the right?

    There is, but it will alter the space between the input fields. Try this css code.

    .chimpy fieldset {
        text-align: right;
    }
    
    .chimpy fieldset p {
        display: inline-block;
        float: none;
    }

    Best regards,
    Ismael

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.