Support › Forums › Verde – WP Plugin › Contact link not working and translations › Reply To: Contact link not working and translations
Hi,
yes, it has to work with map, image or nothing. I have tested it in my server and it works fine.
I have checked your website and the code is still the previous. Maybe it is better if you edit the code by yourself. I use the plugin WPide to edit the code. 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
}, 1000);
}
});
jQuery('#home-top').on('click', function(event) {
event.preventDefault();
$('html, body').stop().animate({
scrollTop: 0
}, 1000);
});
Regards