Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1049985

    Guten Morgen,
    ich habe eine Frage zu der Timeline und zwar wird bei meiner eingesetzten Timeline manchmal nicht das JS geladen, also der Contentwird erstellt und geladen, aber die Timeline wird nicht interaktiv und ist es nur der erste Eintrag zu sehen. Es ist kein swipen oder weiter klicken möglich. Erst beim zweiten Laden der Seite aus dem Cache sind alle Funktionalitäten da. Ich denke dass das JS nicht wartet bis die komplette Timeline geladen ist.

    Gibt es dazu einen Bugfix?
    Viele Grüße
    holema

    #1050734

    Hey holema,
    Ich sehe, dass Sie diese Fehlermeldung erhalten:
    2019-01-06-211246
    Verwenden Sie den Code für aus diesem Beitrag in Ihrer Funktionen.php?
    denn es ist der gleiche wie in diesem Beitrag

    — Translated with Google —

    I see that you are getting this error:
    2019-01-06-211246
    are you using the code from this post in your functions.php?
    because it’s the same error as this post

    Best regards,
    Mike

    #1050991

    Hello Mike,

    Yes I use this Code Snippet to jump directly to the opened Tabs.

    Best regards
    Emanuel

    #1051208

    Hi,

    I took another look at your site and I don’t see the error and your time line is working correctly, did you disable the code snippet?

    Best regards,
    Mike

    #1051302

    Hey,
    I fixed the code from Ismael by my self.
    https://kriesi.at/support/topic/tab-section-link-from-content-in-one-tab-to-another-tab/#post-909792
    I did it this way:

    
    // custom script
    add_action( 'wp_footer', 'ava_custom_script_tab_section' );
    function ava_custom_script_tab_section() {
    ?>
    <script type="text/javascript">
    (function($) {
    	function scrollToTab(s, e,) {
    		$(s).on(e, function(event) {
    			var anchor, loc, cur, hash, tab, parent, pos;
    
    			if( e == 'load' ) {
    				loc  = window.location.hash;
    				hash = loc;
    			} else {
    				loc = $(this).attr('href');
    				hash = loc.substring(loc.indexOf('#'));
    			}
    			if(hash!=''){
    			tab = $('.av-section-tab-title[href='+ hash +']');
    			parent = tab.parents('.av-tab-section-outer-container');
    			pos = parent.offset();
    
    			tab.trigger('click');
    			
    			if(hash) {
    				setTimeout( function() {
    					$(window).scrollTop( pos.top - 100 )
    				}, 500 );
    			}
    			}
    		});
    	}
    
    	scrollToTab( '.menu-item a', 'click' );
    	scrollToTab( window, 'load' );
    })(jQuery);
    </script>
    <?php
    }
    

    I put an if-clause around the jumping part, which prevent the error.
    if(hash!='')
    Best regards and thanks for your idea.

    Emanuel

    #1051396

    Hi,
    Thanks for sharing your solution, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    #1051414

    You can close this.

    Best regads
    Emanuel

    #1051533

    Hi,
    We will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Timeline is loading to late’ is closed to new replies.