How to Add REL="LIGHTBOX" to native Galleries (2 posts)

  1. Clicknathan
    Posted 5 years ago #

    So I've seen this post on the forums before, but none of the solutions which don't involve editing core files actually work.

    The only solution that does work is to edit /wp-includes/post-template.php on line 1170 (in WP 3.1):

    return apply_filters( 'wp_get_attachment_link', "$link_text", $id, $size, $permalink, $icon, $text );

    Can anyone explain how this could be put into the functions.php file instead of editing the core file?

  2. Clicknathan
    Posted 5 years ago #

    Any smarty pants out there who might know this?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.