Created
March 11, 2014 15:14
-
-
Save tomhemsley/9487896 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function metaslider_add_title_and_alt_and_rel_to_anchor($attributes, $slide, $slider_id) { | |
$attributes['rel'] = 'lightbox'; | |
$attributes['title'] = $slide['title']; | |
$attributes['alt'] = $slide['alt']; | |
return $attributes; | |
} | |
add_filter('metaslider_flex_slider_anchor_attributes', 'metaslider_add_title_and_alt_and_rel_to_anchor', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment