title: Where to put tumblr html code to open permalinks in new tab
body: <p>I've searched around and figured that I need to add <code>target="_blank"</code> but I'm not sure where. I've tried placing it at various places after <code>&lt;a href="{Permalink}"</code> but it didn't seem to do anything</p>
  
  <p>I want to have it so that when someone clicks on a post/photo on the main page it'll open the permalink of that post in a new tab.</p>
  
  <p>Here is my complete html:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;&lt;html&gt;&lt;head&gt;
   
  &lt;title&gt;{title}&lt;/title&gt;
  &lt;meta name="description" content="{MetaDescription}" /&gt;
  &lt;link rel="shortcut icon" href="{Favicon}"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
  &lt;link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" /&gt;
  &lt;meta name="viewport" content="width=1220" /&gt;
   
  &lt;!-- DEFAULT VARIABLES --&gt;
  &lt;meta name="color:Background" content="#FFFFFF" /&gt;
  &lt;meta name="color:Center" content="#FFFFFF" /&gt;
  &lt;meta name="color:Text" content="#000000" /&gt;
  &lt;meta name="color:Link" content="#5c5c5c"/&gt;
  &lt;meta name="color:Link Hover" content="#5c5c5c" /&gt;
  &lt;meta name="color:Sidebar Link Background" content="#cfcfcf" /&gt;
  &lt;meta name="color:Blog Title" content="#5c5c5c" /&gt;
  &lt;meta name="color:Scrollbar" content="#7e817e"/&gt;
  &lt;meta name="image:Background" content="" /&gt;
  &lt;meta name="image:Sidebar" content="" /&gt;
  &lt;meta name="if:2 Columns" content="0"/&gt;
  &lt;meta name="if:3 Columns" content="1"/&gt;
  &lt;meta name="if:Rounded Photos" content="0"/&gt;
  &lt;meta name="if:Show Blog Title" content="1"/&gt;
  &lt;meta name="if:Blog Title A" content="1"/&gt;
  &lt;meta name="if:Blog Title B" content="0"/&gt;
  &lt;meta name="if:Blog Title C" content="0"/&gt;
  &lt;meta name="if:Link Style 1" content="0"/&gt;
  &lt;meta name="if:Link Style 2" content="1"/&gt;
  &lt;meta name="if:Show Photo Permalinks" content="1"/&gt;
  &lt;meta name="if:Post Border" content="0"/&gt;
  &lt;meta name="if:Post Shadow" content="0"/&gt;
  &lt;meta name="if:Post Shadow on Hover" content="1"/&gt;
  &lt;meta name="text:Ask Title" content="Message" /&gt;
  &lt;meta name="text:Link One" content="" /&gt;
  &lt;meta name="text:Link One Title" content="" /&gt;
  &lt;meta name="text:Link Two" content="" /&gt;
  &lt;meta name="text:Link Two Title" content="" /&gt;
  &lt;meta name="text:Link Three" content="" /&gt;
  &lt;meta name="text:Link Three Title" content="" /&gt;
  &lt;meta name="text:Link Four" content="" /&gt;
  &lt;meta name="text:link Four Title" content="" /&gt;
  &lt;meta name="text:link Five" content="" /&gt;
  &lt;meta name="text:link Five Title" content="" /&gt;
  &lt;!---   STYLESHEETS &amp; STATIC UPLOADS   ---&gt;
  &lt;link href="http://static.tumblr.com/ek9ly4s/emomovvhc/animate-custom.css" rel="stylesheet"&gt;
  &lt;link href="http://static.tumblr.com/6jwx45k/0bMmpcsel/style.css" rel="stylesheet"&gt;
  &lt;script type="text/javascript"
  src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link href='http://fonts.googleapis.com/css?family=Ubuntu|Open+Sans|Lekton|Pacifico|Gloria+Hallelujah|Viga' rel='stylesheet' type='text/css'&gt;
   
  &lt;script src="http://static.tumblr.com/6jwx45k/qnrmqhe43/ifie1.js"&gt;&lt;/script&gt;
  &lt;script src="http://static.tumblr.com/6jwx45k/QcKmqhe47/ifie2.js"&gt;&lt;/script&gt;
   
  &lt;style type="text/css"&gt;
  
  html{
  {block:indexpage}
  {block:if3columns}margin-left:245px;{/block:if3columns}
  {block:if2columns}margin-left:200px;{/block:if2columns}{/block:indexpage}
  {block:permalinkpage}margin-left:100px;{/block:permalinkpage}
  cursor:crosshair;
  height:103%;}
   
  body, p {
  font-family:Ubuntu;
  font-size:10px;
  font-style: normal;
  padding: 0px;
  margin: 0px;
  color:{color:text};}
   
  body {
  cursor:crosshair;
  background-color:{color:background};
  background-image:url({image:Background});
  background-attachment: fixed;
  background-repeat: repeat;}
   
  a {
  text-decoration:none;
  color:{color:text};
  -webkit-transition: all 0.4s linear;
  -moz-transition: all 0.4s linear;
  transition: all 0.4s linear;}
   
  a:link, a:active, a:visited{
  color: {color:Link};
  text-decoration: none;
  -webkit-transition: all 0.6s ease-out;-moz-transition: all 0.6s ease-out;-o-transition: all   0.6s ease-out;transition: all 0.6s ease-out;}
   
  a:hover{
  color:{color:link hover};}
   
  img {{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedphotos}}
  img:hover{opacity:1.0;-webkit-transition: all 0.6s ease-out;-moz-transition: all 0.6s ease-out;-o-transition: all   0.6s ease-out;transition: all 0.6s ease-out;cursor:crosshair;}
   
  #wrapper {
  position: relative;
  width: 100%;
  text-align: center;}
   
  .clear {
  text-align:left;clear: both;}
   
  #entry.masonry-brick {
  top: 0 !important;
  left: 0 !important;}
   
  #infscr-loading {
  position: absolute!important;
  width: 16px!important;
  height: 11px!important;
  bottom: 0px!important;
  left: 48.5%!important;
  margin-top: 10px!important;
  margin-bottom: 5px!important;}
   
  .supreme{text-align:right;margin-top:10px;}
   
  .title{
  text-align:center;
  font-size:14px;
  line-height:16px;}
   
  blockquote{
  padding:0px 0px 2px 1px;
  margin:0px 0px 2px 1px;
  border-left: 1px dotted #555555;}
   
  .blogtitle{font-size:10px;line-height:40px;text-align:center;letter-spacing:1px;
  padding-top:3px;
  {block:ifBlogTitleA}font-family:Pacifico;padding-bottom:13px;{/block:ifBlogTitleA}
  {block:ifBlogTitleB}font-family:courier new;letter-spacing:3px;
  text-transform:uppercase;{/block:ifBlogTitleB}
  {block:ifBlogTitleC}font-family:'Gloria Hallelujah', cursive;padding-bottom:8px;{/block:ifBlogTitleC}}
  .blogtitle a{color:{color:Blog Title};text-transfrom:uppercase;}
   
  .description{margin-top:7px;margin-bottom:7px;text-align:center;font-family:courier new;letter-spacing:1px;
  text-transform:uppercase;color:#5c5c5c;}
   
  #content{
  margin:auto;position:relative;
  {block:IndexPage}
  {block:if3columns}width:930px;{/block:if3columns}
  {block:if2columns}width:730px;{/block:if2columns}
  {/block:IndexPage}
  {block:PermalinkPage}width:500px;{/block:PermalinkPage}}
   
  .sidebar{width:200px;background-color:{color:center};
  {block:ifpostborder}
  border:1px solid #ccc;
  {/block:ifpostborder}
  padding:0px;
  margin-left:-225px;
  position:fixed;
  z-index:100;
  margin-top:35px;
  font-size:10px;
  font-family:courier;
  {block:indexpage}
  {block:IfPostShadow}box-shadow: 0px 1px 7px #a3a3a3;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;}{/block:IfPostShadow}
  {/block:indexpage}}
   
  .text{{block:indexpage}width:248px;{/block:indexpage}
  {block:permalinkpage}width:500px;{/block:permalinkpage}}
  .photoset{{block:indexpage}width:248px;overflow:hidden;{/block:indexpage}
  {block:permalinkpage}width:500px;{/block:permalinkpage}}
  .photo{width:300px;height:auto;background-color:{color:center};}
  .photo img{width:300px;-webkit-transition: 0.3s ease-in;{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedPhotos}}
  .photo img:hover{-webkit-transition: 0.3s ease-in;}
  .photobig{width:500px;height:auto;background-color:{color:center};}
  .photobig img{width:500px;-webkit-transition: 0.3s ease-in;{block:ifRoundedPhotos}border-radius:5px;{/block:ifroundedPhotos}}
  .photobig img:hover{-webkit-transition: 0.3s ease-in;}
   
  .entry{
  margin:5px 0px 0px 5px;
  padding:0px 0px 0px px;
  background-color:{color:center};
  {block:IndexPage}
  width:300px;
  overflow:hidden;
  {block:ifpostborder}
  border:1px solid #ccc;
  {/block:ifpostborder}
  {block:IfPostShadow}
  box-shadow: 0px 1px 7px #a3a3a3;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;}
  {/block:IfPostShadow}
  {/block:IndexPage}
  {block:PermalinkPage}
  width:500px;
  height:auto;
  {/block:PermalinkPage}}
   
  {block:IfPostShadowonHover}
  .entry:hover, .sidebar:hover{
  box-shadow: 0px 1px 7px #a3a3a3;
  -moz-transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;}
  {/block:IfPostShadowonHover}
   
   
  /*  SCROLL BAR APPEARANCE  */
  ::-webkit-scrollbar-thumb:vertical {
  background-color:{color:scrollbar};
  height:10px;width:10px;opacity:1;
  -webkit-border-radius:0px;border:3px {color:background} solid;}
   
  ::-webkit-scrollbar-thumb:horizontal {
  background-color:#4c4f50;opacity:1;
  height:10px !important;border:3px {color:background} solid;
  -webkit-border-radius:0px;}
   
  ::-webkit-scrollbar {
  height:10px;
  width:10px;
  background-color:{color:background};
  -webkit-border-radius:0px;}
   
  ::-webkit-scrollbar-corner {
  background-color:{color:background};}
   
  ::-webkit-resizer {
  background-color:{color:background};}
  .clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.clearfix{display:inline-block}html[xmlns] .clearfix{display:block}* html .clearfix{height:1%}
  .tumblrAutoPager_page_info,
  .tumblrAutoPager_page_separator {display:none;}
   
  {block:ifLinkStyle1}
  .nav a {
  overflow:hidden;
  padding:3px;
  padding-top:4px;
  margin-left:-1px;
  margin-top:2px;
  display:block;
  font-family:'Viga', arial, sans-serif;
  font-size:14px;
  text-align: left;
  text-transform:uppercase;
  text-decoration:none;
  color: #000;
  background-color:#EEEBEB;
  -webkit-transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;}
   
  .nav a:hover{
  border-radius:0px;
  background-color:#cdcdcd;
  border-right:62px solid black;
  -webkit-transition: all 0.4s ease-out;
  -moz-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  text-decoration:none;}{/block:ifLinkStyle1}
   
  {block:ifLinkStyle2}
  .nav a{
  font-size:9px;
  font-family:courier new;
  line-height:16px;
  padding:2px;
  letter-spacing:2px;
  text-transform:uppercase;
  padding-left:4px;
  color:white;
  background-color:{color:Sidebar Link Background};}
  .nav a:hover{
  background-color:{color:link hover};} {/block:ifLinkStyle2}
  {CustomCSS}
  &lt;/style&gt;
   
  &lt;!-- INFINTE SCROLL SCRIPT --&gt;
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://static.tumblr.com/ek9ly4s/M6Zmozr72/infintescroll3-1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://static.tumblr.com/j1tjexd/WYwm8ed44/like_script.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(window).load(function () {
  var $content = $('#content');
  $content.masonry({itemSelector: '.entry', columnWidth:0
  });
  $content.infinitescroll({
  navSelector : 'div#pagination',
  nextSelector : 'div#pagination a#nextPage',
  itemSelector : '.entry',
  loading: {/*Loading...*/
  finishedMsg: '',
  img: 'http://static.tumblr.com/dbek3sy/pX1lrx8xv/ajax-loader.gif'
  },
  bufferPx :600,
  debug : false,
  },
  // call masonry as a callback.
  function( newElements ) {
  window.n = window.n || 0;
  Tumblr.LikeButton.get_status_by_page(++window.n);
  var $newElems = $( newElements );
  $newElems.hide();
  // ensure that images load before adding to masonry layout
  $newElems.imagesLoaded(function(){
  $content.masonry( 'appended', $newElems, true, function(){$newElems.fadeIn(1500);} );
  });
  });
  });
  &lt;/script&gt;
   
  {block:IndexPage}
  {block:Pagination}
  &lt;div id="pagination"&gt;
  {block:NextPage}
  &lt;a id="nextPage" href="{NextPage}"&gt;&lt;/a&gt;
  {/block:NextPage}
  {block:PreviousPage}
  &lt;a href="{PreviousPage}"&gt;&lt;/a&gt;
  {/block:PreviousPage}
  &lt;/div&gt;
  {/block:Pagination}
  {/block:IndexPage}
  &lt;/head&gt;&lt;body&gt;
  
  &lt;script type="text/javascript" src="http://scmplayer.net/script.js" 
  data-config="{'skin':'skins/black/skin.css','volume':6,'autoplay':true,'shuffle':false,'repeat':1,'placement':'bottom','showplaylist':false,'playlist':[{'title':'Little Monster','url':'https://www.youtube.com/watch?v=ere2Mstl8ww'},{'title':'All I Do','url':'https://www.youtube.com/watch?v=jKSmqdzVY0s'},{'title':'Souls','url':'https://www.youtube.com/watch?v=cuxk8vW01pY'},{'title':'Elements','url':'https://www.youtube.com/watch?v=sf6LD2B_kDQ'},{'title':'High For This','url':'http://www.youtube.com/watch?v=CXGoo0HEma8'},{'title':'Cry Me A River','url':'http://www.youtube.com/watch?v=j0xHlPDn-mM'},{'title':'Lights','url':'http://www.youtube.com/watch?v=uqLGuRX_nLM'},{'title':'Only Flaw','url':'http://www.youtube.com/watch?v=zgbRDL6uRcA'},{'title':'B*tch Don%27t Kill My Vibe','url':'http://www.youtube.com/watch?v=ksmNpl4G3i4'},{'title':'Bullet Train','url':'http://www.youtube.com/watch?v=2QKARCPO3sA'},{'title':'Cherie Amour','url':'https://www.youtube.com/watch?v=0a9SIG4DRbk'},{'title':'Swim Good','url':'http://www.youtube.com/watch?v=UcLsd8RCVq4'},{'title':'Stay','url':'http://www.youtube.com/watch?v=1uJjUz3T3jc'},{'title':'Radioactive','url':'http://www.youtube.com/watch?v=X6-S6IagSQU'},{'title':'Island In The Sun','url':'http://www.youtube.com/watch?v=hy4Y20dOlKs'},{'title':'Hold On','url':'http://www.youtube.com/watch?v=_x6DmYxnBaI'},{'title':'Titanium','url':'http://www.youtube.com/watch?v=QA_CNajQpJY'},{'title':'Payphone','url':'http://www.youtube.com/watch?v=NdHsJlQ5gaE'},{'title':'Lie To Me','url':'http://www.youtube.com/watch?v=DTN8PS8jaIg'}]}" &gt;&lt;/script&gt;
  &lt;!-- SCM Music Player script end --&gt;
  
   
  &lt;div id="content" class="infinite-scroll"&gt;
  &lt;div class="sidebar"&gt;
  &lt;center&gt;
   
  {block:ifshowblogtitle}&lt;div class="blogtitle"&gt;
  &lt;a href="/"&gt;{title}&lt;/a&gt;
  &lt;/div&gt;{/block:ifshowblogtitle}
   
  {block:ifsidebarimage}&lt;center&gt;&lt;a href="/"&gt;&lt;img src="{image:sidebar}" style="width:80%;" class="img"&gt;&lt;/a&gt;&lt;/center&gt;{/block:ifsidebarimage}
   
  
   
  &lt;div style="margin-top:14px;"&gt;&lt;/div&gt;
  &lt;span class="nav"&gt;
  &lt;a href="/"&gt;Home&lt;/a&gt;
  {block:AskEnabled}&lt;a href="/ask"&gt;{text:ask title}&lt;/a&gt;{/block:AskEnabled}
  {block:ifLinkOneTitle}
  &lt;a href="{text:Link One}"&gt;{text:Link One Title}&lt;/a&gt;{/block:ifLinkOneTitle}
  {block:ifLinkTwoTitle}
  &lt;a href="{text:Link Two}"&gt;{text:Link Two Title}&lt;/a&gt;{/block:ifLinkTwoTitle}
  {block:ifLinkThreeTitle}
  &lt;a href="{text:Link Three}"&gt;{text:Link Three Title}&lt;/a&gt;{/block:ifLinkThreeTitle}
  {block:ifLinkFourTitle}
  &lt;a href="{text:Link Four}"&gt;{text:Link Four Title}&lt;/a&gt;{/block:ifLinkFourTitle}
  {block:ifLinkFiveTitle}
  &lt;a href="{text:Link Five}"&gt;{text:Link Five Title}&lt;/a&gt;{/block:ifLinkFiveTitle}
  {block:ifLinkSixTitle}
  &lt;a href="{text:Link Six}"&gt;{text:Link Six Title}&lt;/a&gt;{/block:ifLinkSixTitle}
  {block:ifLinkSevenTitle}
  &lt;a href="{text:Link Seven}"&gt;{text:Link Seven Title}&lt;/a&gt;{/block:ifLinkSevenTitle}
  {block:ifLinkEightTitle}
  &lt;a href="{text:Link Eight}"&gt;{text:Link Eight Title}{/block:ifLinkEightTitle}
  {block:HasPages}{block:Pages}&lt;a href="{URL}"&gt;{Label}&lt;/a&gt;{/block:Pages} {/block:HasPages}
  &lt;a href="/archive"&gt;Archive&lt;/a&gt;
  &lt;!-- DO NOT REMOVE CREDITS KEEP MY THEMES FREE --&gt;
  &lt;a href="http://final-stand.tumblr.com" target="blank"&gt;Theme&lt;/a&gt;&lt;/center&gt;
  &lt;/span&gt;
      
  &lt;div class="description"&gt;{description}&lt;/div&gt;
      
  &lt;/div&gt;
   
  {block:Posts}
  &lt;div id="content" class="infinite-scroll"&gt;
  &lt;div class="entry"&gt;
   
  {block:Photo}
  {block:IndexPage}
  &lt;div class="photo"&gt;{LinkOpenTag}&lt;a href="{Permalink}"&gt;&lt;img src="{PhotoURL-500}" alt="{PhotoAlt}"/&gt; &lt;/a&gt;{LinkCloseTag}&lt;/div&gt;
   
  {block:ifshowphotopermalinks}
  &lt;div class="permalinks"&gt;
  &lt;ul class="buttons"&gt;
  &lt;li&gt;{ReblogButton color="gray" size="16"}&lt;/li&gt;
  &lt;div class="noteslabel"&gt;&lt;a href="{Permalink}"&gt;{TimeAgo}&lt;/a&gt;&lt;/div&gt;
  &lt;div class="noteslabel"&gt;&lt;a href="{Permalink}"&gt;{NoteCount}&lt;/a&gt;&lt;/div&gt;
  &lt;/ul&gt;
  &lt;/div&gt;{/block:ifshowphotopermalinks}
  {/block:IndexPage}
  {block:PermalinkPage}&lt;div class="photobig"&gt;&lt;img src="{PhotoURL-500}" alt="{PhotoAlt}" width="500px"/&gt;&lt;/div&gt;
  {/block:PermalinkPage}
  {/block:Photo}
   
   
  {block:Photoset}
  &lt;center&gt;
  &lt;div class="photoset"&gt;
  {block:IndexPage}{Photoset-250}{block:ifshowphotopermalinks}
  &lt;div class="permalinks"&gt;
  &lt;ul class="buttons"&gt;
  &lt;li&gt;{ReblogButton color="gray" size="16"}&lt;/li&gt;
  &lt;div class="noteslabel"&gt;&lt;a href="{Permalink}"&gt;{TimeAgo}&lt;/a&gt;&lt;/div&gt;
  &lt;div class="noteslabel"&gt;&lt;a href="{Permalink}"&gt;{NoteCount}&lt;/a&gt;&lt;/div&gt;
  &lt;/ul&gt;
  &lt;/div&gt;{/block:ifshowphotopermalinks}{/block:IndexPage}
  {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  &lt;/center&gt;
  {/block:Photoset}
   
  {block:Text}
  &lt;div class="text"&gt;&lt;div style="padding:10px;"&gt;
  &lt;span class="title"&gt;{Title}&lt;/span&gt;
  {Body}
  {block:IndexPage}
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
  {/block:IndexPage}
  {/block:Text}
   
  {block:Link}
  &lt;div class="text"&gt;&lt;div style="padding:10px;"&gt;
  &lt;center&gt;&lt;a href="{URL}"&gt;&lt;span class="title"&gt;{Name}&lt;/span&gt;&lt;/a&gt;&lt;/center&gt;
  &lt;div style="margin-left:3px;"&gt;{block:Description}{Description}{/block:Description}&lt;/div&gt;
  {block:IndexPage}
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
  {/block:IndexPage}
  {block:Link}
   
  {block:Quote}
  &lt;div class="text"&gt;&lt;div style="padding:10px;"&gt;
  &lt;div style="margin-left:3px;"&gt;
  {Quote}&lt;/span&gt;
  {block:Source}&lt;strong&gt;{Source}&lt;/strong&gt;{/block:Source}
  &lt;/div&gt;
  {block:IndexPage}
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
  {/block:IndexPage}
  {/block:Quote}
   
  {block:Chat}
  &lt;div class="text"&gt;&lt;div style="padding:10px;"&gt;
  &lt;div style="margin-left:3px;"&gt;
  {block:Title}&lt;span class="title"&gt;{title}&lt;/span&gt;{/block:Title}
  &lt;ul class="chat"&gt;
  {block:Lines}
  &lt;li class="user_{UserNumber}"&gt;
  {block:Label}
  &lt;span class="label"&gt;{Label}&lt;/span&gt;
  {/block:Label}
  {Line}
  &lt;/li&gt;
  {/block:Lines}
  &lt;/ul&gt;
  &lt;/div&gt;
  {block:IndexPage}
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
  {/block:IndexPage}
  {/block:Chat}
   
  {block:Audio}
  &lt;div class="audio_text"&gt;
  {block:AlbumArt} &lt;a href="{Permalink}"&gt;&lt;img src="{AlbumArtURL}" alt="{PhotoAlt}" style="{block:indexpage}width:250px;height:250px;{/block:indexpage}{block:permalinkpage}width:500px;height:500px;{/block:permalinkpage}"/&gt;
  {/block:AlbumArt}
  &lt;div style="margin-top:-4px;background-color:black;height:30px;padding-top:7px;padding-bottom:5px;border-bottom:3px solid {color:center};
  {block:indexpage}width:250px;{/block:indexpage}"&gt;
  {AudioPlayerBlack}&lt;/div&gt;&lt;/center&gt;
  {/block:Audio}
   
  {block:Answer}
  &lt;div class="text"&gt;&lt;div style="padding:10px;"&gt;
  &lt;b&gt;Q&lt;/b&gt;: {Question}
  &lt;br&gt;&lt;br&gt;
  {Answer}&lt;br&gt;&lt;i&gt;asked by {Asker}&lt;/i&gt;&lt;/p&gt;
  {block:IndexPage}
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;
  {/block:IndexPage}&lt;/div&gt;&lt;/div&gt;{/block:Answer}
   
  {block:Video}
  {block:IndexPage}
  &lt;div class="photoset"&gt;
  &lt;center&gt;
  {Video-250}&lt;/center&gt;
  &lt;a href="{Permalink}"&gt;&lt;div class="supreme"&gt;{NoteCountwithLabel}&lt;/div&gt;&lt;/a&gt;
  &lt;/div&gt;
  {/block:IndexPage}
  {block:PermalinkPage}
  &lt;center&gt;
  {Video-500}&lt;/center&gt;
  {/block:PermalinkPage}
  {block:Video}
   
  {block:PermalinkPage}
  {block:HasTags} &amp;middot; {block:Tags}&lt;a href="TagURL"&gt; #{Tag}&lt;/a&gt; {/block:Tags}{/block:hasTags}
  {/block:PermalinkPage}
   
  {block:PostNotes}
  &lt;div class="notess"&gt;{block:Caption}{Caption}{/block:Caption}
  {block:NoteCount}{NoteCountWithLabel}{/block:NoteCount}
  &lt;br&gt;{PostNotes}&lt;/div&gt;
  {/block:PostNotes}
  &lt;/div&gt;
  &lt;/div&gt;
  {/block:Posts}
   
  {block:Pagination}
  &lt;div id="pagination"&gt;
  {block:NextPage}
  &lt;a id="nextPage" href="{NextPage}"&gt;&lt;/a&gt;
  {/block:NextPage}
  {block:PreviousPage}
  &lt;a href="{PreviousPage}"&gt;&lt;/a&gt;
  {/block:PreviousPage}
  &lt;/div&gt;
  {/block:Pagination}
  {/block:IndexPage}
  &lt;/div&gt;
   
  &lt;script&gt;
  window.onload = function () {
  document.body.insertAdjacentHTML( 'beforeEnd', '&lt;iframe id="my-like-frame" style="display:none;"&gt;&lt;/iframe&gt;' );
  document.addEventListener( 'click', function ( event ) {
  var myLikeLink = event.target;
  if( myLikeLink.className.indexOf( 'my-like' ) &gt; -1 ) {
  var myLikeFrame = document.getElementById( 'my-like-frame' ),
  liked = ( myLikeLink.className == 'my-liked' ),
  command = liked ? 'unlike' : 'like',
  reblog = myLikeLink.getAttribute( 'data-reblog' ),
  postId = myLikeLink.getAttribute( 'data-id' ),
  oauth = reblog.slice( -8 ),
  likeUrl = 'http://www.tumblr.com/' + command + '/' + oauth + '?id=' + postId;
  myLikeFrame.src = likeUrl;
  liked ? myLikeLink.className = 'my-like'
  : myLikeLink.className = 'my-liked';
  };
  }, false );
  };
  &lt;/script&gt;
   
  &lt;/body&gt;&lt;/html&gt;&lt;!-- END OF THEME --&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'd appreciate any help</p>
  
  <p>Thank you</p>