-
AuthorPosts
-
December 2, 2015 at 6:02 am #687978
Hi there, I’m trying to help out a client, he wants a big image to start the homepage with. A button should have a ‘read more’ option so the whole thing scrolls down to the rest of the content. I almost figured out how to do this but the ‘Scroll below slide’ function in Slider Revolution doens’t slide down far enough! Is there a way to make sure the company logo is at the top of the page?
The website: http://tandartsbeck.yescando.nl/
Thanks!
December 2, 2015 at 7:52 am #688179Hey there,
You might have setup the offset incorrectly. Please give us access to your WordPress admin so we could check your setup.
Thanks.
December 2, 2015 at 8:07 am #688211This reply has been marked as private.December 2, 2015 at 11:01 am #688546Hi there,
Thanks for writing back! π
You’ll need to add some custom Javascript to calculate the scroll position on click to the section you want, you could try the code in the following post here https://community.theme.co/forums/topic/getting-the-anchor-link-in-revolution-slider-to-scroll-further-down-the-page/#post-80479 and just change the div ID/class as needed. π
Let us know if you have any problems.
Thank you!
December 3, 2015 at 2:37 am #689835I think I’ve done as you said, added the class .x-logobar, but it still doesn’t scroll down far enough?
December 3, 2015 at 4:47 am #689979Hi there,
I’ve checked your site and looks like you are using a custom scroll bottom button inside your Revolution Slider. In that case, use this jQuery code instead under Custom > JavaScript in the Customizer:
jQuery(document).ready(function($) { $('.x-slider-container.top .tp-scrollbelowslider').off('touchstart click'); $('.x-slider-container.top .tp-scrollbelowslider').on('touchstart click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $('.x-slider-container.above').outerHeight() }, 850, 'easeInOutExpo'); }); });
Thank you!
December 3, 2015 at 7:13 am #690138π I’ve added the javacript code, but when I click the button it still doesn’t scroll down far enough! π
December 3, 2015 at 8:24 am #690216Hi there,
Please try this code instead:
jQuery(document).ready(function($) { $('.x-slider-container.above .tp-scrollbelowslider').off('touchstart click'); $('.x-slider-container.above .tp-scrollbelowslider').on('touchstart click', function(e) { e.preventDefault(); $('html, body').animate({ scrollTop: $('.x-slider-container.above').outerHeight() }, 850, 'easeInOutExpo'); }); });
Thank you!
December 3, 2015 at 10:03 am #690377Exactly the same effect as the other one, nothing changes.
December 3, 2015 at 1:56 pm #690781Hi there,
I’ve updated the code from your Customizer to following:
jQuery(document).ready(function($) { setTimeout(function(){ console.log('time out...'); $('#slide-1-layer-5').off('touchstart click touchend mouseenter mouseleave'); $('#slide-1-layer-5').on('touchstart click', function(e) { console.log('clicked'); e.preventDefault(); $('html, body').animate({ scrollTop: $('.x-slider-container.above').outerHeight() }, 850, 'easeInOutExpo'); }); }, 500); });
The button should take to the correct place now.
Thank you!
December 4, 2015 at 1:22 pm #692267THANKYOOOUUU! Omg I love you guys π Thanks again for all the replies! π Its working perfectly!
December 4, 2015 at 7:11 pm #692687Hello There,
Youβre welcome! We are just glad we were able to help you out.
Thanks for letting us know that it has worked for you.Cheers.
February 2, 2016 at 10:55 am #776302Hiya, you guys helped me out last time but I seem to have broken something :/
I played around with the slider layers and put the button to scroll down in the static global layer. It still seems to have the same trigger and action and the custom code you guys provided in December is still in de Customizer (untouched).
What am I forgetting? Do I need to add a class somewhere? Thanks in advance!
February 2, 2016 at 5:15 pm #776857Hi There,
Upon checking, the button have different class now. That’s why the javascript above will not work. Please try to update above code to this:
jQuery(document).ready(function($) { setTimeout(function(){ console.log('time out...'); $('.rev-btn').off('touchstart click touchend mouseenter mouseleave'); $('.rev-btn').on('touchstart click', function(e) { console.log('clicked'); e.preventDefault(); $('html, body').animate({ scrollTop: $('.x-slider-container.above').outerHeight() }, 850, 'easeInOutExpo'); }); }, 500); });
Hope this helps.
-
AuthorPosts