FIX Alt feature
This commit is contained in:
parent
5c9476cb61
commit
ca6b73d615
|
|
@ -2,8 +2,7 @@
|
||||||
$title = $args['title'];
|
$title = $args['title'];
|
||||||
$ID = $args['ID'];
|
$ID = $args['ID'];
|
||||||
$thumbnail = get_the_post_thumbnail($ID, 'full');
|
$thumbnail = get_the_post_thumbnail($ID, 'full');
|
||||||
|
$alt = get_post_meta($ID, 'alt_text', true);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
@ -19,7 +18,6 @@ $thumbnail = get_the_post_thumbnail($ID, 'full');
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="cta cta--go cta--primary">
|
<div class="cta cta--go cta--primary">
|
||||||
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/carhop-fleche-full.svg" alt="<?php echo $alt; ?>">
|
<img src="<?php echo get_template_directory_uri(); ?>/resources/img/carhop-fleche-full.svg" alt="<?php echo $alt; ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user