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

    (@wunderfarm)

    Hi wdixon,
    thank you for writing us!

    I have just tested WF Magnific Lightbox on my WordPress installation (newest wp-version and with twenty fifteen theme) and it works fine with just an alt attribute on the image. What theme and other plugins are you using? Could you possibly send us a link to your website to further investigate your problem?

    If you need further assistance or have any any further questions or feature requests to report please do not hesitate to contact us.

    Thread Starter wdixon

    (@wdixon)

    Sure here is a link.

    Plugin Author wunderfarm

    (@wunderfarm)

    Hi wdixon,

    unfortunally the img tag with the alt-tag on your website is not wrapped with the the link to the lightbox image and the link with the lightbox image has no img inside.
    You can either put a new a-tag around you existing img and make sure, that the client clicks on that link, or you can simply put the same img inside your “View larger” link and set it to “display: none” via CSS code (much easier solution).

    Here is a simplified example code (second solution):

    <li>
      <div class="esg-media-cover-wrapper">
        <div class="esg-entry-media">
          <img src="/wp-content/uploads/2016/02/betty_blue-400x467.jpg" alt="Betty Blue, 2015, Acrylic on Plywood Cutout, 14.5" x 13" x 1"">
        </div>
        <div class="esg-entry-cover">
          <div>
            <a class="eg-work-skin-element-1 eg-post-17 esgbox" href="/wp-content/uploads/2016/02/betty_blue.jpg" lgtitle="Betty Blue">
            <!-- add this img-tag -->
              <img src="/wp-content/uploads/2016/02/betty_blue-400x467.jpg" alt="Betty Blue, 2015, Acrylic on Plywood Cutout, 14.5" x 13" x 1"" style="display: none;">
              View Larger
            </a>
          </div>
        </div>
      </div>
    </li>

    If you need further assistance or have any any further questions or bugs to report please do not hesitate to contact us.

    Please don’t forget to rate this plugin with 5 shining stars if you like it. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caption not working with alt’ is closed to new replies.