最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Add clickable link on an image

programmeradmin3浏览0评论

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>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论