Support » Fixing WordPress » adding a class to image links in posts

  • Resolved manmar

    (@manmar)


    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 ‘adding a class to image links in posts’ is closed to new replies.