Solved How to Make Tumblr side links open in same tab?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

TumGr

Thread Starter
Joined
Sep 9, 2017
Messages
1
Hello all. I have tried to find the issue to this problem and I've no luck. My blog is here and here is my theme code.

My problem is that every time I click on the side links on my theme (01, 02, 03, etc) it always launches a new tab. It is very bothersome because this sort of thing has never happened to any other themes that I have used before. I saw this possible solution from another thread and I tried it, but it didn't work. I want the links to open in the same tab. I'm not sure what part of the coding is responsible for this.

I appreciate any help I can get with this problem. Thank you in advance.

Code:
  <head>

{block:IfInfiniteScroll}<script type="text/javascript" src="http://codysherman.com/tools/infinite-scrolling/code"></script>{/block:IfInfiniteScroll}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> 
<script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
<script src="http://static.tumblr.com/kmw8hta/UMQna1agf/title.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> 
<script src="http://static.tumblr.com/kmw8hta/Qi5na1acd/top.js"></script>

<title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title>
<link rel="shortcut icon" href="{Favicon}" />
<link rel="stylesheet" type="text/css" href="http://static.tumblr.com/kmw8hta/RDbna1lpd/main.css"/>
{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}

<meta name="image:Background" content=""/>
<meta name="image:Sidebar Image" content=""/>
<meta name="image:Sidebar Bg" content=""/>

<meta name="if:250px" content="0"/>
<meta name="if:400px" content="1"/>
<meta name="if:500px" content="0"/>
<meta name="if:Infinite Scroll" content="0"/>
<meta name="if:Show Captions" content="1"/>
<meta name="if:Show Tags" content="1"/>

<meta name="text:Link1" content="Link 1"/>
<meta name="text:Link1 URL"content=""/>
<meta name="text:Link2" content="Link 2"/>
<meta name="text:Link2 URL"content=""/>
<meta name="text:Link3" content="Link 3"/>
<meta name="text:Link3 URL"content=""/>
<meta name="text:Link4" content="Link 4"/>
<meta name="text:Link4 URL"content=""/>
<meta name="text:Link5" content="Link 5"/>
<meta name="text:Link5 URL"content=""/>
<meta name="text:Link6" content="Link 6"/>
<meta name="text:Link6 URL"content=""/>
<meta name="text:Link7" content="Link 7"/>
<meta name="text:Link7 URL"content=""/>
<meta name="text:Link8" content="Link 8"/>
<meta name="text:Link8 URL"content=""/>

<meta name="color:Background" content="#ffffff"/>
<meta name="color:Borders" content="#f1f1f1"/>
<meta name="color:Text" content="#999999"/>
<meta name="color:Links" content="#000000"/>
<meta name="color:Links Hover" content="#999999"/>
<meta name="color:Post Bg 1" content="#ffffff"/>
<meta name="color:Post Bg 2" content="#f9f9f9"/>
<meta name="color:Sidebar Bg" content="#ffffff"/>
<meta name="color:Sidebar Text" content="#999999"/>

<style type="text/css">
     
iframe#tumblr_controls{
    position:fixed !important;
    right:0px !important;
    opacity:0.8;
    z-index:999;
    -webkit-filter:invert(100%);
}

body{
    cursor: url(http://i.imgur.com/ZOrzC.png), auto;
    margin:0px;
    padding:0px;
    font-family:calibri;
    font-size:12px;
    color:{color:Text};
    background-color:{color:Background};  
    background-attachment:fixed;
    background-repeat:repeat;
    background-image:url('{image:Background}');
}
     
a, a:link, a:active, a:visited{
    cursor: url(http://cur.cursors-4u.net/others/oth-6/oth589.cur), auto;
    text-decoration:none;
    color:{color:Links};
    transition: all linear 0.1s;
}    
       
a:hover{
    cursor: url(http://cur.cursors-4u.net/others/oth-6/oth589.cur), auto;
    text-decoration:none;
    color:{color:Links};
    transition: all linear 0.1s;
}

#content{
    margin-left:450px;
    padding:0px;
    width:500px;
    {block:IndexPage}
    {block:If250px}margin-left:530px;{/block:If250px}
    {block:IfNot250px}margin-left:450px;{/block:IfNot250px}
    {/block:IndexPage}
    {block:PermalinkPage}margin-left:450px;{/block:PermalinkPage}
}

.posts{
    position:relative;
    word-wrap:break-word;
    margin:40px 0px;
    padding:25px;
    border:1px solid {color:Borders};
    {block:IndexPage}
    {block:If250px}width:250px;{/block:If250px}
    {block:If400px}width:400px;{/block:If400px}
    {block:If500px}width:500px;{/block:If500px}
    {/block:IndexPage}
    {block:PermalinkPage}
    {block:IfNot500px}width:400px;{/block:IfNot500px}
    {block:If500px}width:500px;{/block:If500px}
    {/block:PermalinkPage}
}

.posts:nth-child(odd), .posts:nth-child(even) blockquote{
    background:{color:Post Bg 1};
}

.posts:nth-child(even), .posts:nth-child(odd) blockquote{
    background:{color:Post Bg 2};
}

img, video, embed, iframe, object{
    max-width:100%;
}

blockquote{
    margin:0px 10px;
    padding:5px;
    border:1px solid {color:Borders};
}

h1{
    padding-bottom:2px;
    font-size:10px;
    font-family:"century gothic";
    font-weight:normal;
    letter-spacing:1px;
    text-transform:uppercase;
    border-bottom:1px solid {color:Borders};
}

ul.chat{
    margin:0px;
    padding:0px;
    border-bottom:1px solid {color:Borders};
}

.chat li{
    list-style-type:none;
    padding:5px 10px;
    border-top:1px solid {color:Borders};
}

.label{
    font-weight:bold;
}

.audio{
    margin-top:-1px;
    margin-bottom:-1px;
    padding:5px 10px;
    border-top:1px solid {color:Borders};
    border-bottom:1px solid {color:Borders};
}

#permalink{
    opacity:0;
    position:absolute;
    margin-top:-5px;
    padding-left:20px;
    width:60px;
    text-transform:uppercase;
    font-size:8px;
    letter-spacing:1px;
    transition: all 0.3s;
    {block:If250px}margin-left:274px;{/block:If250px}
    {block:If400px}margin-left:425px;{/block:If400px}
    {block:If500px}margin-left:525px;{/block:If500px}
}

.posts:hover #permalink{
    opacity:1;
    transition: all 0.1s;
}
 
#permalink a{
    color:{color:Text};
}  

#permalink a:hover{
    color:{color:Links};
}

.tags{
    width:200px;
    margin:5px 0px 0px 0px;
}

.tags a{
    display:block;
} 

#info{
    margin-top:-35px;
    margin-bottom:40px;
    padding-left:2px;
    letter-spacing:1px;
    text-transform:uppercase;
    font-size:8px;
    {block:IfNot500px}width:448px;{/block:IfNot500px}
    {block:If500px}width:548px;{/block:If500px}
}  

ol.notes{
    padding-left:20px;
    width:548px;
}

.notes img{
    width:10px;
}

#side1{
    position:fixed;
    left:0px;
    top:0px;
    width:140px;
    height:100%;
    padding-top:130px;
    background:#000;
}

.links{
    width:50px;
    margin-left:90px;
    padding:10px 0;
    font-family:"century gothic";
    font-size:10px;
    letter-spacing:1px;
    text-align:center;
    border-left:1px solid #777;
}

.links a{
    margin:10px 0;
    display:block;
    color:#999;
}

.links a:hover{
    opacity:0.5;
}

.pagination{
    width:50px;
    margin-top:25px;
    margin-left:90px;
    padding:10px 0;
    font-family:"times";
    font-size:14px;
    text-align:center;
    border-left:1px solid #777;
}

.pagination a{
    margin:5px 0;
    display:block;
    color:#ddd;
}

.pagination a:hover{
    opacity:0.5;
}

#side2{
    position:fixed;
    top:0px;
    left:140px;
    height:100%;
    width:180px;
    padding:0px 30px;
    color:{color:Sidebar Text};
    background:{color:Sidebar Bg};
    border-left:1px solid {color:Borders};
    border-right:1px solid {color:Borders};
    background-attachment:fixed;
    background-repeat:repeat;
    background-image:url('{image:Sidebar Bg}');
}

#side2 img{
    margin-top:20px;
    width:140px;
    display:block;
    padding:19px;
    background:{color:Post Bg 2};
    border:1px solid {color:Borders};
}

.title{
    margin-top:90px;
    padding-bottom:2px;
    font-size:10px;
    font-family:"century gothic";
    text-transform:uppercase;
    text-align:center;
    letter-spacing:1px;
    border-bottom:1px solid {color:Borders};
}

.description{
    text-align:justify;
    padding-top:20px;
}

.navi{
    margin-top:20px;
    border-top:1px solid {color:Borders};
}

.navi a{
    color:{color:Sidebar Text};
}

.navi a:hover{
    color:{color:Links};
}

.arrow{ 
    background:{color:Sidebar Bg}; 
} 

.arrow:after{ 
    border-top-color:{color:Sidebar Bg}; 
} 

.arrow:before{ 
    border-top-color:{color:Borders}; 
}

#s-m-t-tooltip{
        background:#000;
        color:#ddd;
        border:1px solid #777;
}

</style>
<style type="text/css">{CustomCSS}</style>
</head>
<body>

<a href='#' id='btt' title="top"><div class="btt1"><img src="http://static.tumblr.com/kmw8hta/jU9na1a4a/two.png" /></div><div class="btt2"><img src="http://static.tumblr.com/kmw8hta/yIFna1a51/one.png" /></div></a>

<div id="side1">
<div class="links">
{block:IfLink1}<a href="{text:Link1 URL}" title="{text:Link1}">01</a>{/block:IfLink1}
{block:IfLink2}<a href="{text:Link2 URL}" title="{text:Link2}">02</a>{/block:IfLink2}
{block:IfLink3}<a href="{text:Link3 URL}" title="{text:Link3}">03</a>{/block:IfLink3}
{block:IfLink4}<a href="{text:Link4 URL}" title="{text:Link4}">04</a>{/block:IfLink4}
{block:IfLink5}<a href="{text:Link5 URL}" title="{text:Link5}">05</a>{/block:IfLink5}
{block:IfLink6}<a href="{text:Link6 URL}" title="{text:Link6}">06</a>{/block:IfLink6}
{block:IfLink7}<a href="{text:Link7 URL}" title="{text:Link7}">07</a>{/block:IfLink7}
{block:IfLink8}<a href="{text:Link8 URL}" title="{text:Link8}">08</a>{/block:IfLink8}
</div>
{block:IndexPage}{block:IfNotInfiniteScroll}{block:Pagination}<div class="pagination">{block:NextPage}<a href="{NextPage}" title="next">»</a>{/block:NextPage}{block:PreviousPage}<a href="{PreviousPage}" title="back">«</a>{/block:PreviousPage}</div>{/block:Pagination}{/block:IfnotInfiniteScroll}{/block:IndexPage}
{block:PermalinkPagination}<div class="pagination">{block:PreviousPost}<a href="{PreviousPost}" title="next">»</a>{/block:PreviousPost}{block:NextPost}<a href="{NextPost}" title="back">«</a>{/block:NextPost}</div>{/block:PermalinkPagination}
</div>

<div id="side2">
<div class="title">{title}</div>    
{block:IfSidebarImageImage}<a href="/"><img src="{Image:Sidebar Image}"/></a>{/block:IfSidebarImageImage}
{block:Description}<div class="description">{description}</div>{/block:Description}
<div class="navi">
<a href="/"><div class="arrow" style="margin-left:3px">home</div></a>
<a href="/ask"><div class="arrow" style="left:44px">message</div></a>
<a href="/archive"><div class="arrow" style="left:90px">archive</div></a>
<a href="http://yeoli.tumblr.com"><div class="arrow" style="margin-left:130px">theme</div></a>
</div>
</div>

<div id="content">
<div class="autopagerize_page_element">
<table style="margin-top:-40px;">
{block:Posts}
<div class="posts">  

{block:ContentSource}
<!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}" width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}{block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo}-->
{/block:ContentSource}

{block:Date}{block:IndexPage}
<div id="permalink">
<a href="{Permalink}" title="permalink" style="line-height:20px;font-size:9px;font-family:century gothic">{ShortMonth}  {DayOfMonthWithZero}{DayOfMonthSuffix}</a>
<br/>{NoteCount}
<br/><a href="{ReblogURL}" target="_self" title="reblog?">reblog?</a>
{block:RebloggedFrom}<div style="margin-top:5px;letter-spacing:0px;word-spacing:0px"><a href="{ReblogParentURL}" title="{ReblogParentName}">via</a> / <a href="{ReblogRootURL}" title="{ReblogRootName}">orig</a></div>{/block:RebloggedFrom}
{block:IfShowTags}{block:HasTags}<div class="tags">{block:Tags}<a href="{TagURL}">#{Tag} </a>{/block:Tags}</div>{/block:HasTags}{/block:IfShowTags}
</div>
{/block:IndexPage}{/block:Date}
     
{block:Text}
{block:Title}<h1>{Title}</h1>{/block:Title}
{Body}
{/block:Text}
     
{block:Photo}
{block:IndexPage}
<img src="{PhotoURL-500}" style="display:block; width:500px"/>
{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}
{/block:IndexPage}
{block:PermalinkPage}
<a href="{LinkURL}" target="_self"><img src="{PhotoURL-500}" style="display:block; width:500px"/></a>
{block:Caption}{Caption}{/block:Caption}
{/block:PermalinkPage}
{/block:Photo}  

{block:Photoset}
{Photoset-500}
{block:IndexPage}{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}{/block:IndexPage}
{block:PermalinkPage}{block:Caption}{Caption}{/block:Caption}{/block:PermalinkPage}
{/block:Photoset}

{block:Video}
{Video-500}
{block:IndexPage}{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}{/block:IndexPage}
{block:PermalinkPage}{block:Caption}{Caption}{/block:Caption}{/block:PermalinkPage}
{/block:Video}

{block:Quote}
<span style="font-style:italic;font-size:12px;">{Quote}</span>
<div style="text-align:right">- {Source}</div>
{/block:Quote}
     
{block:Link}
<h1><a href="{URL}" target="{Target}"><span style="font-family:arial;font-size:12px;line-height:10px">➥</span> {Name}</a></h1>
{block:Description}{Description}{/block:Description}
{/block:Link}

{block:Chat}
{block:Title}<h1>{Title}</h1>{/block:Title}
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="label">{Label}</span>
{/block:Label}
{Line}
</li>
{/block:Lines}
</ul>
{/block:Chat}

{block:AudioPlayer} 
<div style="padding:10px;background:#000;margin-bottom:26px;">{AudioPlayerBlack}</div>
{block:TrackName}<div class="audio"><b>Title:</b> {TrackName}</div>{/block:TrackName}
{block:Artist}<div class="audio"><b>Artist:</b> {Artist}</div>{/block:Artist}
{block:Album}<div class="audio"><b>Album:</b> {Album}</div>{/block:Album}
<div class="audio"><b>Played:</b> {FormattedPlayCount} times</div>
{block:IndexPage}
{block:IfShowCaptions}{block:Caption}{Caption}{/block:Caption}{/block:IfShowCaptions}
{/block:IndexPage}
{block:PermalinkPage}
{block:Caption}{Caption}{/block:Caption}
{/block:PermalinkPage}
{/block:AudioPlayer}

{block:Answer}
<div style="margin-bottom:5px;padding-bottom:10px;border-bottom:1px solid {color:Borders};">
<span style="color:{color:Links};letter-spacing:1px;">{Asker} asked:</span> {Question}
</div>
{Answer}
{/block:Answer}

</div>    

{block:PermalinkPage}{block:Date}
<div id="info">
Posted on {ShortMonth} {DayOfMonthWithZero} {Year}
{block:RebloggedFrom}
<div style="text-align:right;margin-top:-9px;margin-bottom:-10px;">Via: <a href="{ReblogParentURL}">{ReblogParentName}</a> Orig: <a href="{ReblogRootURL}">{ReblogRootName}</a></div>
{/block:RebloggedFrom}
<br/>{block:HasTags}Tagged: {block:Tags}#<a href="{TagURL}">{Tag} </a>{/block:Tags}{/block:HasTags}
{block:PostNotes}
<p/>{NoteCountWithLabel}:
<div class="notes">{block:PostNotes}{PostNotes}{/block:PostNotes}</div>
{/block:PostNotes}
</div>
{/block:Date}{/block:PermalinkPage}

{/block:Posts}
</table>
</div>
</div>  

</body>
</html>
 
Joined
Sep 10, 2017
Messages
14
ive just tested your code. it seems to be working normal for me? what browser are you using to test this?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top