Custom single-event.php not loading on mobile

Home Forums Calendar Products Events Calendar PRO Custom single-event.php not loading on mobile

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #65503
    jwwalker
    Participant

    Hi,

    I’ve created a custom single-event.php to add some functionality and it works fine on desktop browsers. It’s at /theme/tribe-events/single-event.php

    However, this is not loaded when viewing on a mobile, meaning that the extra functions I created are not showing up. Do I have to create a separate custom file for mobile, and if so which one is it?

    Many thanks,
    James

    #65769
    Barry
    Member

    Hi James,

    Difficult to say without being able to see it – does everything work when you use the default single-event.php template?

    #65772
    jwwalker
    Participant

    Hi,

    Thanks for the reply. Turns out it was the Jetpack mobile add-on interfering. I fixed the problem by checking if the user is on a mobile with the function jetpackme_is_mobile().

    By the way, your SSL cert for this website expired yesterday so I just got an error when logging in to post this reply.
    Regards,
    James

    #65774
    Barry
    Member

    By the way, your SSL cert for this website expired yesterday so I just got an error when logging in to post this reply.

    Yes we’re aware of that and will hopefully have this fixed shortly – apologies for the inconvenience and any alarm it caused in the interim.

    Turns out it was the Jetpack mobile add-on interfering. I fixed the problem by checking if the user is on a mobile with the function jetpackme_is_mobile().

    There are a few areas where, regrettably, Jetpack interferes – but in this case it sounds like you figured out a solution (and thanks for sharing it). I’ll go ahead and close this thread.

    #980787
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Custom single-event.php not loading on mobile’ is closed to new replies.