WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Post From Site] Add class and rel to image links

[Plugin: Post From Site] Add class and rel to image links

Viewing 1 replies (of 1 total)
  • Temporary i’m using javascript:

    $(document).ready(function() {
        $(".gallery a").addClass("photo");
        $(".gallery a").each(function() {
          this.rel += 'gal';
        });
    });

    This snippet adds class=”photo” and rel=”gal” for all links inside gallery div.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Post From Site] Add class and rel to image links’ is closed to new replies.