如何使Tumblr标语链接到网站? [英] How to make a Tumblr Banner link to a site?
问题描述
我知道已经问过这个问题,但是我认为正在查看的HTML是以一种奇怪的格式编写的.我已经看过以下主题:如何我是否可以在tumblr中将我的横幅链接到另一个站点?,但这没有帮助,因为只是缺少了"a href"位.
I know that this question has already been asked, but the HTML I am looking at has been written in a strange format, in my opinion. I already looked at this thread: How do I make my banner in tumblr link to another site?, but it wasn't helpful, as that "a href" bit is just missing.
<div class="header">
{block:IfHeaderImage}<img style="{block:IndexPage}width:520px;{block:IndexPage} {block:PermalinkPage}width:500px;{/block:PermalinkPage} overflow:hidden; float:left; padding-bottom:15px;" src="{image:header}" {/block:IfHeaderImage}
<div class="blogtitle"{Title}</div>
<div style="text-align:right;">
</div></div>
<div style="padding-top:15px;"><div id="content">
由于缺少"a href"部分,因此我不知道将链接放在何处.有人可以帮忙吗?
Since it's missing that "a href" part, I don't know where to put the link. Can anyone help, please?
推荐答案
假设在tumblr自定义"菜单中,您已将标题图像上传到 header 和选项 IfHeaderImage 在Tumblr自定义菜单中选中:
Assuming in the tumblr Customize menu, you have a header image uploaded to header and the option IfHeaderImage checked in the Tumblr Customize menu:
{block:IfHeaderImage}<a href="INSERTURLHERE"><img style="{block:IndexPage}width:520px;{block:IndexPage} {block:PermalinkPage}width:500px;{/block:PermalinkPage} overflow:hidden; float:left; padding-bottom:15px;" src="{image:header}" /></a>{/block:IfHeaderImage}
链接标签<a href ... >
包裹img
标签,使该图像成为链接.将INSERTURLHERE更改为您要链接到的站点的URL.
The link tags <a href ... >
wrap around the img
tag, rendering that image a link. Change the INSERTURLHERE to the URL of the site you wish to link to.
否则,如果您决定不包含标题图像,则gersande的方法有效.
Otherwise, if you decide not to have a header image, gersande's method works.
这篇关于如何使Tumblr标语链接到网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!