• Catapult

    (@catapult)


    Hi

    In 1.4.0, an $image_class variable is created for each image attachment but not echoed. The code at line 49 is:

    echo '<a href="' . $image_link . '" title="' . $image_title . '" rel="' . $lightbox_rel . ' project-gallery-' . $post->ID . '">' . $image . '</a>';

    I think it should be:

    echo '<a class="' . $image_class . '" href="' . $image_link . '" title="' . $image_title . '" rel="' . $lightbox_rel . ' project-gallery-' . $post->ID . '">' . $image . '</a>';

    This will allow extra scope for styling the project gallery.

    https://www.ads-software.com/plugins/projects-by-woothemes/

  • The topic ‘Print image class in project-gallery.php’ is closed to new replies.