scroll to sections with fullscreen slider addon
-
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> -
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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it