• dsb0328

    (@dsb0328)


    Hello again. I created an animated gif in Photoshop and saved it out to only play once. I brought it into my media library and placed it into a page. Went to the page to see it and it worked perfectly. Then I refreshed the page and nothing. Only the static image after the animation is complete. Well, in Chrome and Firefox, that is. It works fine in Safari and IE 11. Every time the page is reloaded, the animation restarts in those browsers. Any ideas why this would be? Is it something within Customizr? Or is it just a browser thing that I need to figure out on my own? Any help would be great. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dsb0328

    (@dsb0328)

    So I found some script online about this and tried putting it in my functions.php file at the end, but before the <?php }

    <div id="panel-1122-2-0-0"><img id="bagmorecash" src="WA_BSC_Animate3.gif" /></div>
    	<script type="text/javascript">
        	$(document).ready(function () {
            	$("#bagmorecash").attr("src", "WA_BSC_Animate3.gif?" + Math.random());
        	});
    	</script>

    It sort of works with Chrome by animating again if you go to another page and come back, but not just on a refresh. It doesn’t work at all in Firefox. I don’t know much about php or javascript. So, I don’t know if I’m doing something wrong here. I gave the placed image a css class of bagmorecash and the actual name of the image is WA_BSC_Animate3.gif

    From what I’m gathering, this is more of a Chrome/Firefox thing and not a wordpress thing. But I still need to know what to put where. Anyone have any ideas? Thanks.

    Thread Starter dsb0328

    (@dsb0328)

    P.S. I am working with a child theme.

    Twiggs462

    (@jamesderosa3gmailcom)

    I am having the same issue. Did you figure out why the animated GIF only plays once and then not again after a page refresh?

    Thread Starter dsb0328

    (@dsb0328)

    Yes. It has something to do with the code within the functions.php file. I had to end up paying someone to write new code for me, but I’m not sure exactly what they did. Some kind of loop for that specific file. If I can figure it out, I’ll post it here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Animated gif only plays once in Chrome & Firefox’ is closed to new replies.