I am writing some custom code and I want to add a loading icon to the page so that the user can see that the code is doing something and has not frozen. Rather than generate a new one, it would be useful to just reuse the default one that wordpress uses. What is the URL path for the default loading icons in WordPress?
1 Answer
The default spinner icon for wordpress can be found in the following directory "/wp-includes/images/spinner.gif". If you wish to use this spinner, you can add this to the src tag of the image to make it show up. The following code will work for you.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String