admin管理员组

文章数量:1404927

I'm trying to add an image that when clicked on directs the user to another page on my website. I don't want any visible text link, just the image.

How do I do this?

I'm trying to add an image that when clicked on directs the user to another page on my website. I don't want any visible text link, just the image.

How do I do this?

Share Improve this question asked Dec 29, 2019 at 22:21 CharlieCharlie 1033 bronze badges 1
  • you should definitely try smth and then show us so we can help you. – Cornel Raiu Commented Dec 30, 2019 at 0:04
Add a comment  | 

1 Answer 1

Reset to default 2

If you're trying to link the image to the page in the post editor you can click on the image and then click the link icon to set the target.

You can do the same thing in HTML (in the editor in source view), in a plugin, or in a theme like this:

<a href="/link/to/your/page">
  <img src="/link/to/your/image" />
</a>

本文标签: Add clickable link on an image