Skip to content
This repository has been archived by the owner. It is now read-only.

Alt tag interfering with slideshow #36

Closed
jem08002 opened this issue Oct 8, 2014 · 2 comments
Closed

Alt tag interfering with slideshow #36

jem08002 opened this issue Oct 8, 2014 · 2 comments
Labels

Comments

@jem08002
Copy link
Contributor

jem08002 commented Oct 8, 2014

The slideshow generates thumbnails that can not be edited, therefore an alt tag cannot be added for these specific thumbnails/filmstrips.

screen shot 2014-10-08 at 12 35 20 pm

@jmr06005
Copy link
Contributor

jmr06005 commented Nov 7, 2014

They sent me the following code which will need some tweaking:

function metaslider_filmstrip_alt_tags( $list_item, $post, $url ) {$alt = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );$list_item = "
ID} post-{$post->ID}" style="display: none;">"{$alt}"";return $list_item;}
add_filter( 'metaslider_filmstrip_list_item', 'metaslider_filmstrip_alt_tags', 10, 3 );

@jmr06005
Copy link
Contributor

jmr06005 commented Dec 4, 2014

Link to ignore whitespace: https://github.uconn.edu/weblab/cornerstone/pull/67/files?w=0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants