Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    scroll to sections with fullscreen slider addon

    General Discussion
    2
    3
    689
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Toby last edited by arminunruh

      Hi Armin

      I'm struggling to make scroll to anchor points work - I'm working on a one page layout with the fullscreen addon.

      I've allocated a row id to scroll to and set my HTML class id for example: identity

      I then created a textelement selected the word clicked the link button and typed: #identity

      now to scroll I get lost - I found this jquery example within the forum to paste into "lay options - Custom CSS & HTML see below

      but should I be editing this in some way so it can respond to the identity id?

      Thanks in advance

      <script>
      jQuery(document).on("click", "a[href*=#]", function(e){
      e.preventDefault();
      var targetId = jQuery(this).attr("href");
      jQuery('html, body').animate({
      scrollTop: jQuery(targetId).offset().top,
      },
      {
      duration: 2000,
      easing: "easeOutSine"
      });
      });
      </script>

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey, yes with the fullscreen slider addon it works differently. Please take a look here:
        http://laythemeforum.com:4567/topic/947/scroll-to-anchors-with-fullscreen-slider-addon-back-to-top-button-doesn-t-work/2

        1 Reply Last reply Reply Quote 0
        • T
          Toby last edited by

          Ah - great thanks thats worked.
          cheers
          Toby

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Try this to fix issues before you post:

          Use the Search Feature. Maybe there is already a solution to your issue.

          1. Update Lay Theme and all Lay Theme Addons
          2. Disable all Plugins
          3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
          4. Now see if your problem solved itself
          5. Go here, see if your problem is listed here:
          Troubleshooting

          When you post:
          1. Post a link to where the problem is
          2. If the problem is difficult to explain, post screenshots / link to a video to explain it

          Thanks!

          Online Users

          L
          M
          J
          C
          C

          Recent Topics

          • J

            Imagehover addon show mouseover state

          • F

            X-button (close) on category page

          • T

            display resolution of thumbnails in image-hover

          • G

            Designer Websites for free Lay Theme.

          laytheme.com