WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a third party plugin that I'm using for a photo gallery (NextGen). However, with my black background, the loader gif animation looks pretty bad. I found a better loader gif and replaced the one from the plugin. I already know this is not ideal because the next update of the plugin will overwrite my custom gif.

The gif is located at: /wp-content/plugins/nextgen-gallery/images/loader.gif

Is there a clever way to leverage my child theme's functions.php file to tell this plugin to use a different URL for the gif?

As far as using my child theme's CSS to override, that would be easiest if it was a viable option. However, the loader's URL is not coming from the plugin's CSS file.

share|improve this question

closed as off-topic by kaiser Sep 22 '14 at 19:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 3 down vote accepted

Use a rewrite rule in your .htaccess:

RewriteRule ^path-to-images/ajax-loader\.gif /path-to-replacement.gif [L]

Make sure to set this above the WordPress rules.

share|improve this answer
    
Man, now it feels like I over-complicated it. Great solution! – Colin Campbell Jun 13 '13 at 14:47
    
It's working. Thanks! – Sparky Jun 13 '13 at 19:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.