-
AuthorPosts
-
September 26, 2018 at 8:14 am #1014575
Hey dear Kriesi team,
apologies for taking your time the last few days.
On one page I use a fullwidth submenu and an ajax portfolio. When clicking on a portfolio item, the ajax window scrolls behind the fullwidth submenu navigation.
I guess I’m not the first one with that. I could not find a thread for that scenario.Sometimes the ajax portfolio runs into an error. Screenshot below.
Thank you as always!
Best regards,
Thomas- This topic was modified 6 years, 2 months ago by Ink_Eye.
September 26, 2018 at 3:34 pm #1014792Hey Ink_Eye,
1) The error pops up if the user clicks on a portfolio item which is not fully loaded yet. You can activate the preloader effect (Enfold > Theme Options) if you want to make sure that your users can’t click on an item before the page content is loaded.
2) I adjusted the offset for you – I replaced line 158 in enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.js
var target_offset = target_wrap.offset().top - 175,
with
var target_offset = target_wrap.offset().top - 250,
Now the menu won’t cover the top part of the portfolio item.
Best regards,
PeterSeptember 26, 2018 at 3:57 pm #1014810Hey Dude,
perfect, thank you!
I’ve just seen it and wondered why it works, took a look in the forum and realized, that it’s fixed.Your support is outstanding!
Best regards,
ThomasSeptember 26, 2018 at 7:03 pm #1014925Hi Thomas,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 27, 2018 at 8:45 am #1015180Hi Victoria,
the ajax runs into an error sometimes. I attached two screenshots (the first screenshot is the same from yesterday).
Maybe you have an idea what this could be.
Otherwise I would leave it there. I do not know what can cause this error.
Best regards,
ThomasSeptember 27, 2018 at 9:25 am #1015190Hi,
We’re aware of the issue. It pops up if the user clicks on a portfolio item which is not fully loaded.
I tried to replace following code in
if(false === is_open) { target_wrap.addClass('open_container'); content_retrieved[post_id].addClass('open_slide');
with
if(false === is_open) { target_wrap.addClass('open_container'); if(typeof content_retrieved[post_id] != 'undefined') { content_retrieved[post_id].addClass('open_slide'); } else { setTimeout(function(){ methods.show_item(post_id, clickedIndex); return; }, 1000); }
Please check if this solves the issue on your end.
Best regards,
PeterSeptember 27, 2018 at 2:00 pm #1015284Hi Peter, hello Victoria,
thank you for your help! This site is my biggest webdesign project till now and your help is very much appreciated.
Sorry, dude, I forgot, that you mentioned the issue already yesterday.
The site works fine. Thank you.
Best regards,
ThomasSeptember 27, 2018 at 10:55 pm #1015536Hi,
I’m glad you got this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Ajax portfolio navigation behind fullwidth submenu / ajax doesn't load sometimes’ is closed to new replies.