Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1298244

    Dear support,
    i open the contact form 7 in a popup window. (Jaust klick on “Jetzt anmelden”. Opening the form on mobile forces the page to scroll to the top. So you have to scroll down to see the form. Ist there a way to focus the form on mobile so that it is shown without scrolling down to the form?
    Thanks for any help!


    Hey dondela,

    Thank you for the inquiry.

    This same issue has been discussed in the following thread, where you can find the solution as well.


    Let us know if it helps.

    Best regards,


    yes – but think of jQuery 3.5.1 : jQuery(window).load(function(){ is deprecated now.
    You had to use instead: jQuery(window).on('load', function(){

    or here in the code: Link

    $(window).on('load', function(){

    and if it is the syntax is:


    you can write every jQuery inside as $: ( f.e. $(‘body’) }

    function av_open_inline_popup(){
    <script type="text/javascript">
    (function($) {
    $(window).on('load', function(){
    		midClick: true,
    		callbacks: {
    			beforeOpen: function () {
    				$('body').css("overflow-y", "hidden");
    			close: function() {
    				$('body').css("overflow-y", "auto");
    add_action('wp_footer', 'av_open_inline_popup');


    Thanks for helping out @guenni007 :-)

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.