WordPress.org

Support

Support » How-To and Troubleshooting » How to Add REL="LIGHTBOX" to native Galleries

How to Add REL="LIGHTBOX" to native Galleries

  • Clicknathan
    Participant

    @clicknathan

    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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to Add REL="LIGHTBOX" to native Galleries’ is closed to new replies.