-
AuthorPosts
-
August 30, 2018 at 2:02 pm #1003588
Hello fellows,
referring to this post: https://kriesi.at/support/topic/display-a-scroll-down-arrow/#post-763574
I’d like to change the “fade in” timing of scroll to top button. Right now it appears when we scroll to the second section, I suppose that if I change the “window_offset” to 200 should work, isn’t it?
The problem is that in shortcodes.js the code is missing. Did you change the location to another file?
Thanks in advance,
DavideAugust 30, 2018 at 2:55 pm #1003638Hey aderal2016,
The code moved to the enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.js file. Please check there.
Best regards,
VictoriaAugust 31, 2018 at 10:04 am #1003989Thank you Victoria:)
But maybe I was wrong cuz changing the value to 200 it doesn’t work as I expected :D
Any suggestion?
scroll_top: function() { setTimeout(function() { var target_offset = target_wrap.offset().top - 175, window_offset = win.scrollTop(); if(window_offset > target_offset || target_offset - window_offset > 100 ) { $('html:not(:animated),body:not(:animated)').animate({ scrollTop: target_offset }, options.timing, options.easing); } },10); },
Thanks in advance:)
DavideAugust 31, 2018 at 3:45 pm #1004128Hi Davide,
Not sure about that, I have not seen how tall your header is. Try the header height.
Best regards,
VictoriaSeptember 3, 2018 at 4:14 pm #1005034Hi Victoria:)
It doesn’t work really… I supposed that the value “window_offeset > 100” meant a %, because the “scroll to top” appears when the second section (200%) starts.
I’ll investigate more, meanwhile if you any other suggestion would be appreciate
Best,
DavideSeptember 4, 2018 at 9:24 am #1005335Hi,
I’m not sure which scroll button you mean. If you refer to the default scroll to top button (which is used on all pages, not only the portfolio page) you can edit the code in enfold/js/avia.js. Search for the function avia_scroll_top_fade (starting with line 823) and replace 500 in line 832:
if(st < 500)
with another value.
Best regards,
DudeSeptember 4, 2018 at 10:00 am #1005347Hi Dude:)
Yeah that’s it! Maybe my bad cuz I wasn’t clear on the question. It works. Please there’s another problem with Enfold and looks like the bug is still not solved: few patch ago you have deployed a new feature that allow to put link in the columns, but with this feature the smooth scroll doesn’t work properly. Any news about?
You can find the example in the private link, try to click in the second section “1 Datos más destacados”
Thanks in advance
DavideSeptember 4, 2018 at 2:22 pm #1005570Hi,
Can you please create me an admin account and I’ll look into it.
Best regards,
DudeSeptember 4, 2018 at 3:35 pm #1005650Hi Dude:)
Sure!
Thanks in advance
DavideSeptember 5, 2018 at 8:02 am #1005902Hi,
I tried to log in but I get the error message “ERROR: Invalid username. Lost your password?”. Please check the login credentials.
Best regards,
DudeSeptember 5, 2018 at 9:43 am #1005940Sorry, I’m dumb :D
The login url was wrong <.<
September 5, 2018 at 10:38 am #1005978Hi,
I fixed it. I replaced line 627 in enfold/js/shortcodes.js
window.location.href = url;
with
$(this).prev('a.av-screen-reader-only').trigger('click');
Best regards,
DudeSeptember 5, 2018 at 10:52 am #1005993Hi Dude:)
AWESOME IT WORKS! Thank you very much. Keep in mind that as I said, it seems to be an Enfold bug since this feature has been deployed. So you can fix it for the next version.
Cheers,
Davide -
AuthorPosts
- You must be logged in to reply to this topic.