diff --git a/dev/acf-export.json b/dev/acf-export.json index ac08557..6ac60f9 100644 --- a/dev/acf-export.json +++ b/dev/acf-export.json @@ -601,6 +601,25 @@ "default_value": "https:\/\/www.ucf.edu\/coronavirus\/", "placeholder": "" }, + { + "key": "field_61ddb738a7b6d", + "label": "Header Image Alt", + "name": "header_image_alt", + "type": "text", + "instructions": "The text to place in the alt field of the header image.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, { "key": "field_5f088e87d99c3", "label": "Title", @@ -1361,4 +1380,4 @@ "active": true, "description": "" } -] \ No newline at end of file +] diff --git a/template-parts/impact/browser/header.php b/template-parts/impact/browser/header.php index e717e5f..5a677ad 100644 --- a/template-parts/impact/browser/header.php +++ b/template-parts/impact/browser/header.php @@ -8,6 +8,7 @@ $header_img = $options->header_image ?? null; $header_img_utm_content = get_option( 'impact_header_utm_content' ) ?: ''; $header_img_url = isset( $options->header_image_link ) ? Impact\format_url_utm_params( $options->header_image_link, $header_img_utm_content ) : null; +$header_image_alt = $options->header_image_alt ?? ''; ?> @@ -185,7 +186,7 @@ - TODO: Placeholder alt that describes what this email/image is + <?php echo $header_image_alt; ?>