[Mobile] Landing page does not go to the button of the site

Support Forums Verde – WP Plugin [Mobile] Landing page does not go to the button of the site

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5877
    Rui Cruz
    Participant

    Hello there,

    Sorry for bothering you multiple times about the plugin.

    So, can you please check this video: https://player.vimeo.com/external/241495216.sd.mp4?s=f0de895907856f07ddc083d272da042b04c8b9fc&profile_id=165

    If I click on a link to contact us, it does not load until the end of the site. I need to scroll down again because if I do not it will show up a portion of the top page.
    This is not the intended behavior, I assume.

    I tested this with iPhone 7 Plus.

    Any way to fix this?

    #5881
    CreaboxThemes
    Keymaster

    Hi,

    that is the behaviour. The function goes to the begining of the contact section. But, it can be changed in the js function.
    Edit the file verde_plugin/themes/js/scripts.js and change the code to this one:

    jQuery('#link-map').on('click', function(event) {
    var target = $(this.getAttribute('href'));
    if( target.length ) {
    event.preventDefault();
    $('html, body').stop().animate({
    scrollTop: target.offset().top+100
    }, 1000);
    }
    });

    I have added the value 100 to the function

    Regards

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