Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Is there a way to add alt text to an A/B hero image test in target?

Avatar

Avatar
Boost 1
Level 1
angiep33244241
Level 1

Likes

2 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
angiep33244241
Level 1

Likes

2 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
angiep33244241
Level 1

02-03-2020

Hi all, 

 

I'm currently running an A/B image test and want to know if there is any way to add alt text to the image I'm testing within adobe target? We would usually have alt text added on our backend but since we are testing the image through Target we can't add it like that. 

 

Has anyone else ran into this and if so, how what were the steps you took to add alt text?

 

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

64 likes

Total Posts

68 posts

Correct Reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

64 likes

Total Posts

68 posts

Correct Reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile
rajneesh_gautam
Level 4

03-03-2020

Hi @angiep33244241 

 

You can use custom code to change Alt text:

 

// jQuery
$('img').filter(':first').attr('alt', 'My image')

// Vanilla
document.querySelector('img').setAttribute('alt', 'My image')

from: https://gist.github.com/joyrexus/7307312

 

 

Answers (0)