How do I make my banner in tumblr link to another site?

試著忘記壹切 提交于 2019-11-28 12:54:57

问题


I'm trying to make the banner in my tumblr blog link to another site. I can't figure out how to do it. The following is the code I found in the custom html tab but I can't seem to make my banner clickable. Where exactly should I add the website address for the link? Any help will be appreciated.

<div id="page" class="{block:IfLeftSidebar}left-sidebar{/block:IfLeftSidebar}{block:IfNotLeftSidebar}right-sidebar{/block:IfNotLeftSidebar}">
    {block:IfBannerImage}
    <div class="banner">
        <a href="/"title="{Title}"><img id="banner" src="{image:Banner}" alt="banner"/></a>
    </div>
    {block:IfBannerImage}
    {block:IfNotBannerImage}
    {block:IfBlogTitleInPageHeader}
    <div class="banner textual">
        <h1 class="blog-title"><a href="/">{Title}</a></h1>
        {block:IfTagline}<p class="tagline">{text:Tagline}</p>{/block:IfTagline}
    </div>
    {/block:IfBlogTitleInPageHeader}
    {/block:IfNotBannerImage}
    <div id="content">

回答1:


<div class="banner">
    <a href="/"title="{Title}"><img id="banner" src="{image:Banner}" alt="banner"/></a>
</div>

put your website in the

href=""


来源:https://stackoverflow.com/questions/7545154/how-do-i-make-my-banner-in-tumblr-link-to-another-site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!