Home › Forums › Calendar Products › Events Calendar PRO › Page load problem
- This topic has 12 replies, 2 voices, and was last updated 10 years, 6 months ago by
George.
-
AuthorPosts
-
October 14, 2015 at 1:55 am #1014436
Brian
ParticipantHello,
I have a big problem: when I click on the link which is supposed to show me my events, nothing happens, there’s the small icon turning around, but nothing is displayed. Well, I should say: my events are there, but not formated, as if the stylesheeet was not loaded.
Then I have to press F5 to refresh the page, and then yes, the page is displayed nicely.
Could you please help me solve this problem ?
Thanks
October 14, 2015 at 6:15 am #1014470George
ParticipantHey @Brian,
Can you share the URL where this is happening? I’ll take a look at this issue in person to see what I can learn.
Also, can you share your “System Information” with us? Here’s how to do so → https://theeventscalendar.com/knowledgebase/sharing-sys-info/
An issue like this is usually caused by a theme or plugin conflict, or at least just some over-aggressive caching perhaps. If you have a any caching or minification plugins on your site, can you temporarily deactivate them and then see if this affects the issue at all?
Thank you!
GeorgeOctober 14, 2015 at 6:22 am #1014474Brian
ParticipantThis reply is private.
October 14, 2015 at 7:15 am #1014518George
ParticipantHey Brian,
You do not have to create a new ticket! In fact, doing so would be a bad thing since it’s best to keep all replies in one thread here for organization.
As for keeping info from the public, as long as you check the Private Reply option before posting your reply, the reply will only be visible to you and to us on the Tribe Support Team.
I hope this helps!
Cheers
GeorgeOctober 14, 2015 at 7:19 am #1014521Brian
ParticipantThis reply is private.
October 14, 2015 at 7:42 am #1014541George
ParticipantThis reply is private.
October 14, 2015 at 7:47 am #1014547Brian
ParticipantThis reply is private.
October 14, 2015 at 7:47 am #1014548Brian
ParticipantThis reply is private.
October 14, 2015 at 7:57 am #1014555George
ParticipantThis reply is private.
October 14, 2015 at 7:58 am #1014556Brian
ParticipantThis reply is private.
October 15, 2015 at 6:50 am #1014856George
ParticipantThank you for this Brian! I’m sorry that I missed the problem originally – I went straight to the URL, which as you noted in the video makes things work and look okay.
The problem here is your theme’s AJAX. I still do not personally have issues with it in Firefox on a Mac, but in some browsers this can definitely cause issues.
There is unfortunately not much we can do about the issue ourselves since the issue is with the AJAX loading of content within your theme – I’d recommend contacting your theme developer for assistance on how to disable the AJAX loading of just the events page, perhaps.
—
While it’s true that we can’t support theme issues here (as a matter of policy but also just because we don’t know the theme code and such), I want to at least try and help here and not just send you away to the theme developer!
I’m not sure if this will work 100% effectively, and contacting your theme developer is still recommended, but I did write up some custom code here that might temporarily fix this for now. This code will make it so that when that events page link is clicked, the user is brought to the domain name directly without AJAX. To see if this helps, try adding the following code somewhere in your theme’s functions.php file:
if ( function_exists( 'tribe_get_events' ) ) {function tribe_support_1014436() {
wp_enqueue_script( 'jquery' ); ?>
<script>
(function($){
$( '#nav-menu-item-15291, #nav-menu-item-151 a' ).click(function(e){
e.preventDefault()
window.location.href = 'http://www.yoursite.com/evenements/';
window.location.reload();
return false;
})
})(jQuery);
</script><?php}
add_action( 'wp_footer', 'tribe_support_1014436' );
}
I hope this helps a bit – if not, try tweaking the code to just this:
if ( function_exists( 'tribe_get_events' ) ) {function tribe_support_1014436() {
wp_enqueue_script( 'jquery' ); ?>
<script>
(function($){
$( '#nav-menu-item-15291, #nav-menu-item-151 a' ).click(function(e){
e.preventDefault()
window.location.href = 'http://www.yoursite.com/evenements/';
return false;
})
})(jQuery);
</script><?php}
add_action( 'wp_footer', 'tribe_support_1014436' );
}
Let me know if this helps at all!
Sincerely,
GeorgeOctober 22, 2015 at 5:22 am #1016820Brian
ParticipantThank you George, the problem was solved by the second method.
Thanks a lot!
Regards,
BrianOctober 22, 2015 at 9:47 am #1016979George
ParticipantGlad to hear it! It’s a bit of a “hack” for sure, and I would still recommend contacting your theme’s support team about this, but hopefully it placates the issue for the time being 🙂
I’ll close up this thread for now; open a new thread any time if we can help with anything else on your site!
Cheers,
George -
AuthorPosts
- The topic ‘Page load problem’ is closed to new replies.
