Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1112710

    Hey guys,

    I have a new question. Your GDPR checkbox option is fantastic but at the wrong position for me. Look at the footer of my stage-Version (look at private Infos) the checkbox and text are before the submit button. I want the inputs and the submit on one line and the GDPR checkbox and text under this line.

    How can I do that?

    Thank you!

    #1112715

    Hey coolicious,
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #top.home .avia_ajax_form .first_form.form_element_third {
        clear: right !important; 
        margin-left: 5px !important; 
        width: 31.6% !important; 
    }
    #top.home #avia_0_1 {
       max-height: 44px !important; 
    }

    Then add this code to the end of your functions.php file in Appearance > Editor:

    function custom_gdpr_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
    $( 'fieldset' ).each(function() {
    $( this ).find( '.form_element_third' ).insertBefore( $(this).find('.av_mailchimp_privacy_check') );
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_gdpr_script');

    Best regards,
    Mike

    #1112719

    Hey Mike,

    I tried it and it works, but can you say to me a hardcoded solution? Unfortunately there is a jump because the position switch after window load with this solution you know?

    Thank you!

    #1112751

    Hi,
    Sorry, I don’t have a hardcoded solution. I checked your page again and see the jump, typically once caching is applied the scripts load before the first view of the site, but not always.
    Are you using a caching plugin?
    Another option to use the “preloader” option in the theme settings, this will mask the jump.

    Best regards,
    Mike

    #1112759

    Ah ok!

    Yes, I use WPRocket. Maybe I have to exclude the JS-File? Which JS-File is it?

    #1112995

    Hi,

    WP Rocket is giving a list of them, is that correct?

    Best regards,
    Basilis

    #1113202

    Hey Basillis,

    no, I dont get a list of WPRocket about the JS-files :/

    #1113623

    Hi,

    WPRocket provides a list on the settings page, I have noticed this previously with all the JS files that you can work on them.

    Best regards,
    Basilis

    #1113678

    Ok, on which settings page exactly? Which anchor has the URL? I cant find it :/

    #1114003

    Ok, I deactivated WPRocket and the “jump” problem is still there – what can I do?

    #1114147

    Hi,
    I have checked your site again and I would like to see your backend, Please include an admin login in the Private Content area.

    Best regards,
    Mike

    #1114360

    Sure:

    #1114659

    Hi,
    Thanks for the login, I have taken another look but I don’t see another way around this.
    As for your WPRocket, the idea was that the script would be included in the cache and execute before the page was done loading.
    But it looks like this won’t be the case. Since this is at the bottom of the page it won’t be seen unless you reload on top of it.
    Have you thought about using the “preloader” option in the theme settings, so the script is not seen?
    Best regards,
    Mike

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