<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Adding an Image Using belowheader() Hook</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 18:34:26 +0000</pubDate>

<item>
<title>tarpontech on "Adding an Image Using belowheader() Hook"</title>
<link>http://themeshaper.com/forums/topic/adding-an-image-using-belowheader-hook#post-14097</link>
<pubDate>Fri, 23 Jul 2010 23:45:55 +0000</pubDate>
<dc:creator>tarpontech</dc:creator>
<guid isPermaLink="false">14097@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;my 2 cents would be to create a themes-option page so that you can easily change images using theme options.  The free themes-option template and tutorial that Ian and the Automattic team posted on the themeshaper main site made it VERY EASY to create theme options.&#60;/p&#62;
&#60;p&#62;I'm no PHP programmer, and I figured it out in a couple hours, it was a huge cut-n-paste bonanza, now my themes are filled with options, mostly to change text and images, but it makes things soo much easier to manage.
&#60;/p&#62;</description>
</item>
<item>
<title>lastraw on "Adding an Image Using belowheader() Hook"</title>
<link>http://themeshaper.com/forums/topic/adding-an-image-using-belowheader-hook#post-14090</link>
<pubDate>Fri, 23 Jul 2010 21:28:30 +0000</pubDate>
<dc:creator>lastraw</dc:creator>
<guid isPermaLink="false">14090@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I think you're right :)
&#60;/p&#62;</description>
</item>
<item>
<title>daveread on "Adding an Image Using belowheader() Hook"</title>
<link>http://themeshaper.com/forums/topic/adding-an-image-using-belowheader-hook#post-14086</link>
<pubDate>Fri, 23 Jul 2010 12:04:09 +0000</pubDate>
<dc:creator>daveread</dc:creator>
<guid isPermaLink="false">14086@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Just wondering if this is the correct and/or optimal way to add a linked image above the header? Would it be better to do it via &#34;php include&#34; so that I don't need to edit the functions file to change the image? If so, any tips on using &#34;php include&#34; to add a linked image above header? Grateful for all the help I've found here - thanks all!&#60;/p&#62;
&#60;p&#62;Here's the function:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
//add banner_ad&#60;/p&#62;
&#60;p&#62;function childtheme_banner_ad() { ?&#38;gt;&#60;br /&#62;
&#38;lt;div class=&#34;above-header&#34;&#38;gt;&#60;br /&#62;
    &#60;a href=&#34;http://readwebco.com&#34;&#62;&#38;lt;img src=&#34;&#38;lt;?php echo bloginfo('stylesheet_directory') ?&#38;gt;/images/top-banner.png&#34; width=&#34;960&#34; height=&#34;96&#34; alt=&#34;Sample banner ad&#34; /&#38;gt;&#60;/a&#62;&#60;br /&#62;
 &#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;?php }&#60;br /&#62;
add_action('thematic_aboveheader', 'childtheme_banner_ad');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This works on my messy &#34;sandbox&#34; area: &#60;a href=&#34;http://designboth.com/&#34; rel=&#34;nofollow&#34;&#62;http://designboth.com/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>davecrow on "Adding an Image Using belowheader() Hook"</title>
<link>http://themeshaper.com/forums/topic/adding-an-image-using-belowheader-hook#post-10579</link>
<pubDate>Tue, 09 Mar 2010 05:18:47 +0000</pubDate>
<dc:creator>davecrow</dc:creator>
<guid isPermaLink="false">10579@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Found the issue.&#60;/p&#62;
&#60;p&#62;I changed the path to the image to &#34;wp-content/themes/name-of-child-theme/images/main-image-01.jpg&#34;&#60;/p&#62;
&#60;p&#62;I didn't realize the paths in the functions file weren't relative to the child theme folder. So as I guessed above...it was something very simple I was doing wrong.
&#60;/p&#62;</description>
</item>
<item>
<title>davecrow on "Adding an Image Using belowheader() Hook"</title>
<link>http://themeshaper.com/forums/topic/adding-an-image-using-belowheader-hook#post-10530</link>
<pubDate>Sun, 07 Mar 2010 05:30:31 +0000</pubDate>
<dc:creator>davecrow</dc:creator>
<guid isPermaLink="false">10530@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm trying to add an image as a secondary header just below the navigation using the belowheader() hook. I've added the html and I can get text to show up, but when I place an image in the div, it doesn't show up.&#60;/p&#62;
&#60;p&#62;This is my first time using Thematic and the first custom function I've written, so there's probably something very simple that I'm doing wrong. Here's the code I'm trying to use:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Adds secondary header image
function secondary_header() { ?&#38;gt;

	&#38;lt;div class=&#38;quot;secondary-header&#38;quot;&#38;gt;
		&#38;lt;img src=&#38;quot;images/main-image-01.jpg&#38;quot;&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;?php }

 	add_action(&#38;#39;thematic_belowheader&#38;#39;,&#38;#39;secondary_header&#38;#39;)&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
