<?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: horizontal social buttons under post title.</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 21:10:32 +0000</pubDate>

<item>
<title>helgatheviking on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24871</link>
<pubDate>Fri, 13 Jan 2012 18:59:06 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24871@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;not always better, just different.  i do like locate_template though.  it is pretty bad-ass as far as functions go.
&#60;/p&#62;</description>
</item>
<item>
<title>fwunder on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24870</link>
<pubDate>Fri, 13 Jan 2012 18:04:50 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">24870@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Somehow I knew you would come up with a better way! :)&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24869</link>
<pubDate>Fri, 13 Jan 2012 17:55:29 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24869@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;IE7 can slough off and die.  ;)  &#60;/p&#62;
&#60;p&#62;fwunder, if you don't want to create a separate file you could just put the html in your function (if you are using a newer thematic you can skip straight to using an override without needing to remove and add actions&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Create a custom access div with the menu and social bar
function childtheme_override_access() { ?&#38;gt;
    	&#38;lt;div id=&#38;quot;access&#38;quot;&#38;gt;
    		&#38;lt;?php
	    		if ((function_exists(&#38;quot;has_nav_menu&#38;quot;)) &#38;#38;&#38;#38; (has_nav_menu(apply_filters(&#38;#39;thematic_primary_menu_id&#38;#39;, &#38;#39;primary-menu&#38;#39;)))) {
	    			echo  wp_nav_menu(thematic_nav_menu_args());
    			} else {
    				echo  thematic_add_menuclass(wp_page_menu(thematic_page_menu_args()));
    			}
	    	?&#38;gt;

			&#38;lt;div id=&#38;quot;socialstuff&#38;quot;&#38;gt;I heart bacon&#38;lt;/div&#38;gt;

        &#38;lt;/div&#38;gt;&#38;lt;!-- #access --&#38;gt;
&#38;lt;?php }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;also, i'm getting away from using include in favor of locate_template() as it doesn't break things if it doesn't find the file.  &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/locate_template&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/locate_template&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;locate_template(&#38;#39;includes/social.php&#38;#39;,true);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>fwunder on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24867</link>
<pubDate>Fri, 13 Jan 2012 17:46:25 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">24867@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Bellying up to the social bar...&#60;/p&#62;
&#60;p&#62;I don't possess nearly the awesomeness of Ms. Viking, but as I am learning Thematic, I decided to play in my sandpit this morning with the horizontal social bar stuff and placement. Like she said, &#34;Thematic Trix are for kids, with SOME PHP knowledge.&#34; In addition to this excellent resource, Google is your friend.&#60;/p&#62;
&#60;p&#62;First thing I did was create a social.php file that I could play with till I got it the way I wanted it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;? php
&#38;lt;div id=&#38;quot;social_bar&#38;quot;&#38;gt;
&#38;lt;!-- Facebook Like code --&#38;gt;
&#38;lt;!-- Google button --&#38;gt;
&#38;lt;!-- Twitter button --&#38;gt;
&#38;lt;/div&#38;gt;
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Happy with that, I needed to decide where to put it. I played with several different  areas using &#60;a href=&#34;http://visualizing.thematic4you.com/2008/09/layout-test/&#34; rel=&#34;nofollow&#34;&#62;http://visualizing.thematic4you.com/2008/09/layout-test/&#60;/a&#62; as my guide. For example, I tried:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function social_bar() {
    include(STYLESHEETPATH . &#38;#39;/includes/social.php&#38;#39;);
}
add_action(&#38;#39;thematic_abovepost&#38;#39;,&#38;#39;social_bar&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Note that I created an &#34;includes&#34; directory in my child theme just to keep all my sandpit toys in order. Using includes makes my function.php file easier for me to read too. I get confused easily. Anyway, I didn't like any of the places I found on the map. I wanted it in my menu bar space - access div. A little Googling and browsing &#60;a href=&#34;http://thematic4you.com/&#34; rel=&#34;nofollow&#34;&#62;http://thematic4you.com/&#60;/a&#62; I found what I was looking for.&#60;/p&#62;
&#60;p&#62;Basically, I needed to remove the access menu and and replace it with the menu AND my social bar. Cool.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//remove access menu so we can build a new one with social bar
function remove_thematic_actions() {
    remove_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_access&#38;#39;,9);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;remove_thematic_actions&#38;#39;);

// Create a custom access div with the menu and social bar
function social_access() { ?&#38;gt;
    	&#38;lt;div id=&#38;quot;access&#38;quot;&#38;gt;
    		&#38;lt;?php
	    		if ((function_exists(&#38;quot;has_nav_menu&#38;quot;)) &#38;#38;&#38;#38; (has_nav_menu(apply_filters(&#38;#39;thematic_primary_menu_id&#38;#39;, &#38;#39;primary-menu&#38;#39;)))) {
	    			echo  wp_nav_menu(thematic_nav_menu_args());
    			} else {
    				echo  thematic_add_menuclass(wp_page_menu(thematic_page_menu_args()));
    			}
	    	?&#38;gt;

			&#38;lt;?php include(STYLESHEETPATH . &#38;#39;/includes/social.php&#38;#39;); ?&#38;gt;

        &#38;lt;/div&#38;gt;&#38;lt;!-- #access --&#38;gt;
&#38;lt;?php }
add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;social_access&#38;#39;,9);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You'll see how it looks @ &#60;a href=&#34;http://www.timwunderlich.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.timwunderlich.com/&#60;/a&#62;&#60;br /&#62;
It looks pretty good in everything but IE7. I need to Google some more on the CSS stuff. Not sure if this helps you, but it helps me writing it up - repetitive motion thing. Have fun!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24848</link>
<pubDate>Fri, 13 Jan 2012 02:15:23 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24848@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;umm that IS the tutorial in the most general sense, b/c as i said in that post... the process is the same almost no matter what you want to do.  if you genuinely read it (versus skimmed over it as soon as you saw a php function) then i would appreciate knowing what you find so confusing, so that i can improve my tutorial.  i tried to break it down to its most elemental parts and used what i thought was a pretty good analogy.  &#60;/p&#62;
&#60;p&#62;you WILL have to get SOME knowledge of PHP if you expect to be able to do anything w/ your theme.
&#60;/p&#62;</description>
</item>
<item>
<title>Dust on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24843</link>
<pubDate>Thu, 12 Jan 2012 23:49:19 +0000</pubDate>
<dc:creator>Dust</dc:creator>
<guid isPermaLink="false">24843@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;helgatheviking&#60;br /&#62;
Thank you for replying. I was hoping to find a tutorial on how to do it. I have no knowledge of php so the filter tutorial kinda goes over my head.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24803</link>
<pubDate>Tue, 10 Jan 2012 23:17:00 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24803@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;filter thematic_postheader&#60;/p&#62;
&#60;p&#62;see my 'how to filter':&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Dust on "horizontal social buttons under post title."</title>
<link>http://themeshaper.com/forums/topic/horizontal-social-buttons-under-post-title#post-24774</link>
<pubDate>Tue, 10 Jan 2012 01:05:36 +0000</pubDate>
<dc:creator>Dust</dc:creator>
<guid isPermaLink="false">24774@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;br /&#62;
I found only one plugin that does this but I get errors and cache problems with it and decides to delete from my blog. I ended up just getting the code from Google+ and Tweeter, and Facebook and put it into a text widget that is in the Single Bottom widget area of Thematic. It is ok but I would really like to have the social buttons under every post title. Does anyone know how I could do this? Thanks in advance.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
