Archives

Currently Reading

Interesting TimesSoul MusicMen at ArmsLords and LadiesWitches AbroadReaper Man

More of Sytone's books »
Book recommendations, book reviews, quotes, book clubs, book trivia, book lists

Theme Hack – Flickr image in Amazing Grace WordPress theme

If you are using the Amazing Grace theme for WordPress the following hack allows you to change the image in the header bar to a flickr feed. Note: I have only tested in IE, if you have firefox and it does not work drop a comment.

Modify header.php and place the following in the style tags near the top.

#portrait-bg {
  background:url(<?php bloginfo('template_directory'); ?>/images/bg-portraitB.jpg);
}

#flickr_badge_image1
{
  position:absolute;
  left:14px;
  top:28px;
}
#flickr_badge_image1 img {
  border: none;
  width:283px;
  height:174px;
}

Create a badge with flickr for the tagged photos you want in the header and in the final screen with the code to paste into your site look for the javascript call. Place this between the div with the id portrait-bg in header.php

Example.

<div id="portrait-bg">
<script type="text/javascript"
   src="http://www.flickr.com/badge_code_v2.gne?count=1&display=random&size=m&layout=x&source=user_tag&user=9245906%40N03&tag=blogheader">
</script></div>

Once this is done, place the following image in the Amazing Grace theme directory under images and name it bg-portraitB.jpg. (Right click and save it down)

bg-portraitB

Refresh and all should be done.