<?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 Tag: function plugin</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 18:59:31 +0000</pubDate>

<item>
<title>xxxevilgrinxxx on "Function to add something to...what?"</title>
<link>http://themeshaper.com/forums/topic/function-to-add-something-towhat#post-20530</link>
<pubDate>Wed, 13 Apr 2011 19:55:03 +0000</pubDate>
<dc:creator>xxxevilgrinxxx</dc:creator>
<guid isPermaLink="false">20530@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks, Scott :)&#60;/p&#62;
&#60;p&#62;In my test environment (no caching to worry about), I'm still generating errors, even with the above. Still, it's only 3 errors total, but they vex me :D
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Function to add something to...what?"</title>
<link>http://themeshaper.com/forums/topic/function-to-add-something-towhat#post-20500</link>
<pubDate>Tue, 12 Apr 2011 16:21:37 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">20500@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The little piece of code you are after is the thematic_create_doctype.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function modify_create_doctype($content) {&#60;br /&#62;
 $content = '&#38;lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
 $content .= '&#38;lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xmlns:addthis=&#34;http://www.addthis.com/help/api-spec&#34;';&#60;br /&#62;
 return $content;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_create_doctype', 'modify_create_doctype');&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
Something like this is what you are after.
&#60;/p&#62;</description>
</item>
<item>
<title>xxxevilgrinxxx on "Function to add something to...what?"</title>
<link>http://themeshaper.com/forums/topic/function-to-add-something-towhat#post-20499</link>
<pubDate>Tue, 12 Apr 2011 15:38:30 +0000</pubDate>
<dc:creator>xxxevilgrinxxx</dc:creator>
<guid isPermaLink="false">20499@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello, I'd like to make an addition, via function.php, to make a plugin behave properly. I've fumbled around with a bit and only managed to get more errors than what I've started out with.&#60;/p&#62;
&#60;p&#62;possible help?&#60;/p&#62;
&#60;p&#62;This is what I have to change/add - somehow&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Valid XHTML

If you&#38;#39;re using XHTML, the custom attributes will not pass validation. To make your XHTML technically valid, you&#38;#39;ll need to add a custom namspace declaration to your opening &#38;lt;html&#38;gt; tag. (Note that the W3C validator does not take custom namespaces into account.)

Change

&#38;lt;html xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot;&#38;gt;

to

&#38;lt;html
    xmlns=&#38;quot;http://www.w3.org/1999/xhtml&#38;quot;
    xmlns:addthis=&#38;quot;http://www.addthis.com/help/api-spec&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
