Add image attributes to an image

Hello,

I would like to know how to customize image attributes. As a clear example, I need to add the following attribute to a particular image that I have added in my footer:

Any idea on how I can add this?

Any help is greatly appreciated.

Thanks,

-Gabriel

The page has rendered the code I inserted :slight_smile: lol

So here it is with quotes:

<a>
<img src="image-xyz.gif" />
</a>

Thanks

Hello,

I’m not sure what is your exact issue, can you please provide a link to your website and explain how you added the image?

Kind Regards, Roman.

Hi Roman,

Thanks for the reply and for displaying the quoted code I pasted in. It’s actually missing a line, which reads:

the site is www.vimandvig.com and it’s the “Sign up for our newsletter” picture in the footer. I would like to know how to edit its attributes so it can activate a pop-up

thanks,

  • Gabriel

So the text editor keeps dropping this line:
<a data-sumome-listbuilder-id="xyz">

Let’s hope this works

Hello,

Please try to use Text widget instead of widget that you are using now and see if it helps. Just add something like this (but with your additional attributes) to Content field of Text widget:

<a href="http://example.com"><img src="http://vimandvig.com/wp-content/uploads/2017/01/Signupfornewsletter-B.jpg"></a>

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

it worked! amazing. thanks :slight_smile: I appreciate your help, especially since the issue was not theme related but general wordpress stuff.

You are welcome Gabriel! :slight_smile:

Kind Regards, Roman.