mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-15 12:33:19 +09:00
Add alt attribute to backstretch image
This commit is contained in:
@@ -145,6 +145,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
'centeredX' => (bool) $backstretch_vars['centeredX'],
|
||||
'centeredY' => (bool) $backstretch_vars['centeredY'],
|
||||
'fade' => (int) $backstretch_vars['fade'],
|
||||
'title' => esc_attr( $this->item->title ),
|
||||
);
|
||||
|
||||
wp_localize_script( 'displayfeaturedimage-backstretch-set', 'BackStretchVars', $output );
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
fade: parseInt( plugin.params.fade )
|
||||
}
|
||||
);
|
||||
|
||||
var image = $( '.big-leader .backstretch img' );
|
||||
image.attr( 'alt', plugin.params.title );
|
||||
}
|
||||
|
||||
function _getSource() {
|
||||
|
||||
Reference in New Issue
Block a user