Support » Plugin: ACF Media Credit » credit disappears if class added to image

  • Resolved Julianwave

    (@julianwave)


    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', 'http://www.philipwolmuth.com/', '© Philip Wolmuth');" href="http://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>

    https://wordpress.org/plugins/acf-media-credit/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author donaldG2

    (@donaldg2)

    Apologies for this! I just saw these support threads. Let me dig into this and I’ll get back to you.

    Plugin Author donaldG2

    (@donaldg2)

    So, the issue is in the regex as it’s not outputting any extra classes, only the ones assigned by WordPress. I’ll get this updated soon, likely today, and let you know when it’s fixed. Thanks for using the plugin!

    Plugin Author donaldG2

    (@donaldg2)

    This is all fixed up now in version 1.2, please upgrade. Shouldn’t have any issues using an extra class on an image w/ or w/o a caption. Thanks for the feedback!

    Closing ticket.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘credit disappears if class added to image’ is closed to new replies.