Tagged: footer widget, hyperlink, image
I’m trying to add a link to a Chinese version of our site, so I’d like to add a Chinese flag that hyperlinks to that site in my footer widget text instead of hyperlinking text.
The code I used is below, but I’m not sure how to input an image link instead of text
< a href=”URL”>text< /a >
Hey arch2030,
You have to upload the image to the WordPress Media library and the copy that url. So the code would look like this:
<a href="url"><img src="linktoimg.jpg" /></a>
Best regards,
Jordan Shannon
Great – that worked! The image is quite large, can I edit that code to define it’s width?
Hi,
Yes just add that value to the code:
<a href="url"><img src="linktoimg.jpg" width="100px" /></a>
Best regards,
Jordan Shannon
Perfect – thank you Jordan!
Hi,
No problem at all. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon