Advertisement
sleepythemes

Tutorial: Small graphic as permalink

Jan 13th, 2014
790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. In your coding, you're going to want to find where your post permalink is. A permalink is a click-through that will bring you to the page for that post that holds it's notes, where you can reblog it, etc. The link will look something like this:
  2.  
  3. <a href="{Permalink}"> {NoteCount} </a>
  4.  
  5. Some themes will have their permalink set as a note count, the date, the time of the post, there are tons of options. If you want to have the small image as previewed above, all you have to do is replace {NoteCount}, or whatever the theme maker has set for the link with the URL of the image you'd like to display.
  6.  
  7. That will look something like this:
  8.  
  9. <a href="{Permalink}"> <img src="imageurlhere"> </a>
  10.  
  11. It might be appropriate to resize it as well, to do that you simply would add this text into the image brackets.
  12.  
  13. <a href="{Permalink}"> <img src="imageurlhere" width="###"> </a>
  14.  
  15. The width is set in pixels, so 100px is about an inch, size it as necessary!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement