WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] adding a class to image links in posts

[Resolved] adding a class to image links in posts

  • Is there a way to add a class to image links in posts? I am trying to open images with a lightbox while using default WP functionality (add media).

    I am tying to go from

    <a href="big-image.jpg">
      <img src="image.jpg">
    </a>

    to

    <a class="lightbox" href="big-image.jpg">
      <img src="image.jpg">
    </a>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] adding a class to image links in posts’ is closed to new replies.
Skip to toolbar