Help with Scripts

#1

Hey guys I’m new at unbounce, and I don’t understand a lot of scripts and I’m urgently in need of some code for my page …

List of codes that I did not find in the tutorials here:

Jquery Script (the latest)
Anchor links (smooth) for many buttons
Whatsapp form

Can someone help me or indicate where I can find it? Appreciate!

0 Likes

#2

Hi @Lucas_Fernandes,

I can help you a bit, Lucas.

:small_blue_diamond: Jquery Script

 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

:small_blue_diamond: Anchor Links - Smooth Scroll

<script>
  jQuery(function($) {
  
    // The speed of the scroll in milliseconds
    var speed = 1000;
  
    // Find links that are #anchors and scroll to them
    $('a[href^=#]')
      .not('.lp-pom-form .lp-pom-button')
      .unbind('click.smoothScroll')
      .bind('click.smoothScroll', function(event) {
        event.preventDefault();
        $('html, body').animate({ scrollTop: $( $(this).attr('href') ).offset().top }, speed);
      });
  });
</script>

:small_blue_diamond: Whatsapp Form
I have not personally used this before. Perhaps they provided you with a snippet of code to embed in on your page? In that case you would to drop a custom HTML element on your page from the builder and copy the code over.

If you are still needing help, feel free to wonder to the Job Board!

Best of luck!

1 Like

#3

@Caroline Thank you very much for your help!! Help me a lot !! And i will se about the whatsapp form i think is a form of gravity forms… Thank you again!!!

1 Like