Help Desk

Change loading spinner

  • Posts: 8 Topics: 9
    | Permalink

    Hi there,

    I’ve found the tribe_events_before_html function in /the-events-calendar/src/functions/template-tags/general.php which is displaying the loading gif on my calendar.

    Can you please explain how I would edit this via my theme?

    Thanks,
    Tom

    Posts: 2364
    | Permalink

    Hi Tom,

    Thanks for reaching out! I will try to help with your question.

    There is a filter on the output of that function. You can replace what this returns from your functions.php file.

    In this example, I have copied the original function’s logic into our custom filter callback. You would just need to replace ‘path/to/your-custom.gif’ with the full path to the image you want to use instead.

    So just add this to your child theme’s functions.php, and modify it to use the image you want.

    Hope that helps! Please let me know if you have additional questions about this.

    Thanks,
    Sky

    Posts: 8 Topics: 9
    | Permalink

    Thanks alot for the help!!

    Posts: 2364
    | Permalink

    Hi again,

    You’re very welcome!

    Please let us know if you have any questions or issues in the future.

    Thanks,
    Sky

    Posts: 65
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    | Permalink