Tagged: footer
-
AuthorPosts
-
June 23, 2019 at 4:15 pm #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!
June 23, 2019 at 5:11 pm #1112715Hey 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,
MikeJune 23, 2019 at 5:50 pm #1112719Hey 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!
June 23, 2019 at 9:07 pm #1112751Hi,
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,
MikeJune 23, 2019 at 9:34 pm #1112759Ah ok!
Yes, I use WPRocket. Maybe I have to exclude the JS-File? Which JS-File is it?
June 24, 2019 at 8:37 pm #1112995Hi,
WP Rocket is giving a list of them, is that correct?
Best regards,
BasilisJune 25, 2019 at 11:13 am #1113202Hey Basillis,
no, I dont get a list of WPRocket about the JS-files :/
June 26, 2019 at 3:07 pm #1113623Hi,
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,
BasilisJune 26, 2019 at 5:58 pm #1113678Ok, on which settings page exactly? Which anchor has the URL? I cant find it :/
June 27, 2019 at 4:46 pm #1114003Ok, I deactivated WPRocket and the “jump” problem is still there – what can I do?
June 28, 2019 at 3:54 am #1114147Hi,
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,
MikeJune 28, 2019 at 8:58 pm #1114360Sure:
June 30, 2019 at 7:30 pm #1114659Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.