• Resolved marcelkunzler

    (@marcelkunzler)


    Hello. Thanks for this great plugin. When crediting featured images, I noticed the span is being styled with the same width of the image.

    <span class=”media-credit” style=”width: 650px”>JOHN DOE, AP</span>

    My theme dynamically resizes some images, so I was wondering if there is a way to disable this.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pepe

    (@pputzer)

    You can use the filter hook media_credit_post_thumbnail to override the HTML.

    Current parameters for the filter:

    string       $content           Empty string.
    string       $html              The post thumbnail HTML.
    int          $post_id           The post ID.
    string       $post_thumbnail_id The post thumbnail ID.
    • This reply was modified 9 years, 6 months ago by pepe.
    • This reply was modified 9 years, 6 months ago by pepe.
    • This reply was modified 9 years, 6 months ago by pepe.
    Thread Starter marcelkunzler

    (@marcelkunzler)

    Thanks! It worked great.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove styling’ is closed to new replies.