Hi Team,
I have added a small code below to my wix site: https://www.cityzen.social
Code:
import wixLocation from ‘wix-location’ ;
$w . onReady ( function () {
let query = wixLocation.query ;
if ( query.scroll == true ) $w ( “#contactForm” ). scrollTo ()
. then ( ( ) => {
console . log ( “Done with scroll” );
} );
//$w(“#contactForm”).scrollTo();
//console.log(“console log message is”+ query);
});
But when I go to the link: https://www.cityzen.social/?scroll=true
, its not working for some reason, could you please advise on what am I doing wrong here?