This worked for me, THANK YOU, this was a massive headache for me.
For anyone else make sure you copy all of the code.
I also used this on portfolio image captions in the Grid:Masonary format if that helps others. I assume it would be the same for other image captions but I haven't checked but it is working site wide.