Change loading spinner

Home Forums Ticket Products Community Tickets Change loading spinner

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1588312
    tompha
    Participant

    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

    #1589801
    Sky
    Keymaster

    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.

    https://gist.github.com/skyshab/484c3c6bfeac4065ca7273737567284d

    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

    #1593813
    tompha
    Participant

    Thanks alot for the help!!

    #1593816
    Sky
    Keymaster

    Hi again,

    You’re very welcome!

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

    Thanks,
    Sky

    #1610773
    Support Droid
    Keymaster

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change loading spinner’ is closed to new replies.