credit disappears if class added to image
-
All works fine unless i add a class name into “Image CSS Class” in the image editor in the wysiwyg. I thought that it might be a way to let people choose between white credit text or black credit text overlaid onto the photo.
Anyway if I do it, the image wrapping div changes into a paragraph, and the span containing the credit disappears altogether.
In other words it goes from
<div class="alignnone media-credit wp-image-1095"> <img class="alignnone wp-image-1095 size-full" width="800" height="520" alt="group discussion" src="xxx/woman_braids.jpg"> <span class="acf-media-credit"> <span class="acf-credit"> <a target="_blank" onclick="__gaTracker('send', 'event', 'outbound-article', 'https://www.philipwolmuth.com/', '? Philip Wolmuth');" href="https://www.philipwolmuth.com/">? Philip Wolmuth</a> </span> </span> </div>
to
<p> <img class="black-text alignnone wp-image-1095 size-full" width="800" height="520" alt="group discussion" src="xxx/woman_braids.jpg"> </p>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘credit disappears if class added to image’ is closed to new replies.