Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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,
    Davide

    #1003638

    Hey aderal2016,

    The code moved to the enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.js file. Please check there.

    Best regards,
    Victoria

    #1003989

    Thank 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:)
    Davide

    #1004128

    Hi Davide,

    Not sure about that, I have not seen how tall your header is. Try the header height.

    Best regards,
    Victoria

    #1005034

    Hi 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,
    Davide

    #1005335

    Hi,

    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,
    Dude

    #1005347

    Hi 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
    Davide

    #1005570

    Hi,

    Can you please create me an admin account and I’ll look into it.

    Best regards,
    Dude

    #1005650

    Hi Dude:)

    Sure!

    Thanks in advance
    Davide

    #1005902

    Hi,

    I tried to log in but I get the error message “ERROR: Invalid username. Lost your password?”. Please check the login credentials.

    Best regards,
    Dude

    #1005940

    Sorry, I’m dumb :D

    The login url was wrong <.<

    #1005978

    Hi,

    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,
    Dude

    #1005993

    Hi 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

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.