
-
AuthorPosts
-
January 4, 2019 at 2:01 pm #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
holemaJanuary 7, 2019 at 4:23 am #1050734Hey holema,
Ich sehe, dass Sie diese Fehlermeldung erhalten:
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:
are you using the code from this post in your functions.php?
because it’s the same error as this postBest regards,
MikeJanuary 7, 2019 at 6:39 pm #1050991Hello Mike,
Yes I use this Code Snippet to jump directly to the opened Tabs.
Best regards
EmanuelJanuary 8, 2019 at 6:25 am #1051208Hi,
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,
MikeJanuary 8, 2019 at 10:09 am #1051302Hey,
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
January 8, 2019 at 2:28 pm #1051396Hi,
Thanks for sharing your solution, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeJanuary 8, 2019 at 3:24 pm #1051414You can close this.
Best regads
EmanuelJanuary 9, 2019 at 12:48 am #1051533Hi,
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 -
AuthorPosts
- The topic ‘Timeline is loading to late’ is closed to new replies.