<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to add an image in the Ahimsa Theme header</title>
	<atom:link href="http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/feed" rel="self" type="application/rss+xml" />
	<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header</link>
	<description>Bits of software inspired by little Ahren and Tanish</description>
	<lastBuildDate>Mon, 30 Apr 2012 22:41:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Katie Thornberry</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-29804</link>
		<dc:creator>Katie Thornberry</dc:creator>
		<pubDate>Sun, 25 Jul 2010 00:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-29804</guid>
		<description>Could you help me figure out what I did wrong:


        
            
                
                    &lt;img id=&#039;logo&#039; alt=&#039;&#039; title=&#039;&#039; src=&#039;&#039; /&gt;
                
            
            &lt;a href=&quot;/&quot;&gt;
    &lt;img src=&quot;/http://www.blog.gfreemadeeasy.com/wp-content/uploads/2010/07/gfree1.jpg&quot;
        border=&quot;0&quot; alt=&quot;&quot; /&gt;
  
            
             
        
    
</description>
		<content:encoded><![CDATA[<p>Could you help me figure out what I did wrong:</p>
<p>                    &lt;img id=&#039;logo&#039; alt=&#039;&#039; title=&#039;&#039; src=&#039;&#8217; /&gt;</p>
<p>            &lt;a href=&quot;/&#8221;&gt;<br />
    &lt;img src=&quot;/http://www.blog.gfreemadeeasy.com/wp-content/uploads/2010/07/gfree1.jpg&#8221;<br />
        border=&#8221;0&#8243; alt=&#8221;" /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10243</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Sun, 03 Jan 2010 03:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10243</guid>
		<description>Jennifer, looks like your markup (HTML) got interpreted in the comment above. For &lt; you should use &lt;, and for &gt; you can use &gt; so that they are show as those characters rather than get interpreted as HTML tags. I think WordPress might have auto-substituted &quot;smart quotes&quot; in my code where the_subheading() is called. Would it be possible for you to contact me via email? I could send you the text easier that way. We can also try IM (ahrencode @ google chat).</description>
		<content:encoded><![CDATA[<p>Jennifer, looks like your markup (HTML) got interpreted in the comment above. For &lt; you should use &amp;lt;, and for &gt; you can use &amp;gt; so that they are show as those characters rather than get interpreted as HTML tags. I think WordPress might have auto-substituted &#8220;smart quotes&#8221; in my code where the_subheading() is called. Would it be possible for you to contact me via email? I could send you the text easier that way. We can also try IM (ahrencode @ google chat).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Starkman</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10170</link>
		<dc:creator>Jennifer Starkman</dc:creator>
		<pubDate>Thu, 31 Dec 2009 19:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10170</guid>
		<description>Hmm...  Did as suggested, and got the following error:

Parse error: syntax error, unexpected T_STRING in /home/noodlenu/public_html/wordpress/wp-content/themes/ahimsa/entry.php on line 17

The area of the altered entry.php code looks like this now:

  

        
            &lt;a href=&quot;&quot; rel=&quot;bookmark&quot;
                title=&quot;Permanent Link to &quot;&gt;&lt;/a&gt;
                  &lt;?php if (function_exists(&#039;the_subheading&#039;)) 
{ print &quot;\n&quot;; 
the_subheading(&#039;’, ”); 
print &quot;\n&quot;;
} 
?&gt;


Any idea what I did wrong?</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;  Did as suggested, and got the following error:</p>
<p>Parse error: syntax error, unexpected T_STRING in /home/noodlenu/public_html/wordpress/wp-content/themes/ahimsa/entry.php on line 17</p>
<p>The area of the altered entry.php code looks like this now:</p>
<p>            &lt;a href=&quot;&#8221; rel=&#8221;bookmark&#8221;<br />
                title=&#8221;Permanent Link to &#8220;&gt;<br />
                  &lt;?php if (function_exists(&#039;the_subheading&#039;))<br />
{ print &quot;\n&#8221;;<br />
the_subheading(&#8216;’, ”);<br />
print &#8220;\n&#8221;;<br />
}<br />
?&gt;</p>
<p>Any idea what I did wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10150</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Thu, 31 Dec 2009 03:51:39 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10150</guid>
		<description>Sounds good. Good luck.</description>
		<content:encoded><![CDATA[<p>Sounds good. Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Starkman</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10148</link>
		<dc:creator>Jennifer Starkman</dc:creator>
		<pubDate>Thu, 31 Dec 2009 03:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10148</guid>
		<description>Great!  I&#039;m going to try this out tomorrow, and will let you know if I have any problems (though I don&#039;t anticipate any, thanks to your clear explanation).  Thanks again for all your help!  I&#039;ll be sure to let you know when the site is finished so you can see how the tweaked Ahimsa looks.</description>
		<content:encoded><![CDATA[<p>Great!  I&#8217;m going to try this out tomorrow, and will let you know if I have any problems (though I don&#8217;t anticipate any, thanks to your clear explanation).  Thanks again for all your help!  I&#8217;ll be sure to let you know when the site is finished so you can see how the tweaked Ahimsa looks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10147</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Thu, 31 Dec 2009 03:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10147</guid>
		<description>Unfortunately it looks like the plugin does not add a clear identifier to the inserted text. It just wraps it in a &lt;p&gt; tag. However, since you added the code they required in entry.php, you can go one step further and wrap it in a div like this:

&lt;code&gt;
&lt;?php
     if (function_exists(&#039;the_subheading&#039;))
     {
         print &quot;&lt;div class=&#039;postsubheading capsule&#039;&gt;\n&quot;;
         the_subheading(&#039;’, ”);
         print &quot;&lt;/div&gt;\n&quot;;
     }
?&gt;
&lt;/code&gt;

With this in hand we can style this section as we wish. For instance, we can make it float to the right and have a background colour of red, foreground white, and font size of about 14pt, by adding to &lt;code&gt;custom.css&lt;/code&gt; the following:

&lt;code&gt;
. postsubheading
{
    float: left:
    background-color: #bb0000;
    color: #ffffff;
    font-size: 14pt;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Unfortunately it looks like the plugin does not add a clear identifier to the inserted text. It just wraps it in a &lt;p&gt; tag. However, since you added the code they required in entry.php, you can go one step further and wrap it in a div like this:</p>
<p><code><br />
< ?php<br />
     if (function_exists('the_subheading'))<br />
     {<br />
         print "&lt;div class='postsubheading capsule'&gt;\n";<br />
         the_subheading('’, ”);<br />
         print "&lt;/div&gt;\n";<br />
     }<br />
?><br />
</code></p>
<p>With this in hand we can style this section as we wish. For instance, we can make it float to the right and have a background colour of red, foreground white, and font size of about 14pt, by adding to <code>custom.css</code> the following:</p>
<p><code><br />
. postsubheading<br />
{<br />
    float: left:<br />
    background-color: #bb0000;<br />
    color: #ffffff;<br />
    font-size: 14pt;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Starkman</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10133</link>
		<dc:creator>Jennifer Starkman</dc:creator>
		<pubDate>Wed, 30 Dec 2009 22:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10133</guid>
		<description>Augh!  So sorry--included the edit page instead of the post page by mistake.  This is the right URL (please delete previous):

http://noodlenuts.com/wordpress/?cat=3</description>
		<content:encoded><![CDATA[<p>Augh!  So sorry&#8211;included the edit page instead of the post page by mistake.  This is the right URL (please delete previous):</p>
<p><a href="http://noodlenuts.com/wordpress/?cat=3" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/noodlenuts.com/wordpress/?cat=3&amp;referer=');">http://noodlenuts.com/wordpress/?cat=3</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Starkman</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10131</link>
		<dc:creator>Jennifer Starkman</dc:creator>
		<pubDate>Wed, 30 Dec 2009 22:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10131</guid>
		<description>Here&#039;s the one-and-only post (I&#039;m waiting to straighten out all this style/theme/structure before I start migrating the rest of the content from my current site).  The subtitle is where it says &quot;written &amp; illustrated by ... etc.&quot;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the one-and-only post (I&#8217;m waiting to straighten out all this style/theme/structure before I start migrating the rest of the content from my current site).  The subtitle is where it says &#8220;written &amp; illustrated by &#8230; etc.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ravi</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10122</link>
		<dc:creator>ravi</dc:creator>
		<pubDate>Wed, 30 Dec 2009 19:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10122</guid>
		<description>Jennifer, no worries. I need a link to a post on your blog so I can take a look at what code the plugin generates.</description>
		<content:encoded><![CDATA[<p>Jennifer, no worries. I need a link to a post on your blog so I can take a look at what code the plugin generates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer Starkman</title>
		<link>http://code.ahren.org/bit/how-to-add-an-image-in-the-ahimsa-theme-header/comment-page-1#comment-10119</link>
		<dc:creator>Jennifer Starkman</dc:creator>
		<pubDate>Wed, 30 Dec 2009 18:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://ahren.org/code/?p=203#comment-10119</guid>
		<description>Whoops--sent too soon.  I still need to know what you need me to send you in order to style the subheading. Then I SWEAR I will stop pestering you with questions. :-)</description>
		<content:encoded><![CDATA[<p>Whoops&#8211;sent too soon.  I still need to know what you need me to send you in order to style the subheading. Then I SWEAR I will stop pestering you with questions. :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: code.ahren.org @ 2012-05-16 20:03:21 -->
