<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Adding Buttons to my Post Template &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 05 Nov 2025 20:19:25 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-136115</guid>
					<title><![CDATA[Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-136115</link>
					<pubDate>Fri, 31 Oct 2014 20:07:48 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Team X,</p>
<p>I need to add three large buttons to my Post template under the post content, but above the Facebook Comment box.  Can you please share how this is done?  I have the child theme for Ethos already set-up and have copied two files into the child theme.  (wp-single.php and header.php)</p>
<p>The buttons will read &#8220;Previous Story&#8221;, &#8220;Next Story&#8221;, and &#8220;Share This Story on Facebook&#8221;<br />
The functionality would redirect to the previous AND next story AND the other would open up the FB dialogue box so the user can share.</p>
<p>Thank you for your great support</p>
<p>Espressoulcafe.com</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-136203</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-136203</link>
					<pubDate>Fri, 31 Oct 2014 23:06:11 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for posting in.</p>
<p>I just saw your other post where you insert share shortcode. Instead of doing that, you can just add this code at your child theme&#8217;s functions.php to ensure that they will go before comment section.</p>
<pre><code>add_filter (&#039;the_content&#039;, &#039;add_social_share&#039;, 0 );

function add_social_share ( $content ) {

if( is_singular(&#039;post&#039;) ) {
return $content.&#039;[share title=&quot;Social&quot; facebook=&quot;true&quot;]&#039;;
}

}

add_action (&#039;the_content&#039;, &#039;add_button_navigation&#039;, 0 );

function add_button_navigation ( $content ) {

if( is_singular(&#039;post&#039;) ) {
previous_post_link( &#039;&lt;strong&gt;Previous Story&lt;/strong&gt;&#039; );
echo &#039;|&#039;;
next_post_link( &#039;&lt;strong&gt;Next Story&lt;/strong&gt;&#039; );
return $content;
}

}</code></pre>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137663</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137663</link>
					<pubDate>Mon, 03 Nov 2014 18:34:43 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						<p>I removed the code from the wp-single file and added your new code in the Appearance &lt; Editor section for X-Child and selected the Functions.PHP section.  I pasted your code, updated, refreshed and got this error message:</p>
<p>500 Server Error</p>
<p>A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.<br />
URL: <a href="http://www.espressoulcafe.com/gentle-dog-loves-boy/" rel="nofollow">http://www.espressoulcafe.com/gentle-dog-loves-boy/</a></p>
<p>I went in a deleted this code.  Can you recheck the code or did I add this new code in the wrong place?</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137665</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137665</link>
					<pubDate>Mon, 03 Nov 2014 18:38:32 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						<p>If I need to do this in my c-panel, I need to know where the file is, where to copy it and please dumb it down.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137732</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137732</link>
					<pubDate>Mon, 03 Nov 2014 20:16:18 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>You need to add this code in your child funcitons.php </p>
<p>If you are editing a file using FTP or on your cpanel, it should be in <strong>wp-content/themes/x-child-ethos/functions.php</strong></p>
<p>hope that helps,</p>
<p>Have a great day</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137759</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137759</link>
					<pubDate>Mon, 03 Nov 2014 20:56:58 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						<p>Ok, I found the functions.php file in my child theme.  I added your code, updated, refreshed, and still got the same error 500 message, so i deleted it.</p>
<p>This is what was updated at this file directory in my cpanel &#8211; wp-content/themes/x-child-ethos/functions.php</p>
<p>&lt;?php</p>
<p>// =============================================================================<br />
// FUNCTIONS.PHP<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// Overwrite or add your own custom functions to X in this file.<br />
// =============================================================================</p>
<p>add_filter (&#8216;the_content&#8217;, &#8216;add_social_share&#8217;, 0 );</p>
<p>function add_social_share ( $content ) {</p>
<p>if( is_singular(&#8216;post&#8217;) ) {<br />
return $content.'[share title=&#8221;Social&#8221; facebook=&#8221;true&#8221;]&#8217;;<br />
}</p>
<p>}</p>
<p>add_action (&#8216;the_content&#8217;, &#8216;add_button_navigation&#8217;, 0 );</p>
<p>function add_button_navigation ( $content ) {</p>
<p>if( is_singular(&#8216;post&#8217;) ) {<br />
previous_post_link( &#8216;<strong>Previous Story</strong>&#8216; );<br />
echo &#8216;|&#8217;;<br />
next_post_link( &#8216;<strong>Next Story</strong>&#8216; );<br />
return $content;<br />
}</p>
<p>}</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137980</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-137980</link>
					<pubDate>Tue, 04 Nov 2014 06:39:10 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Sorry for the confusion there.</p>
<p>You can try this code instead.</p>
<pre><code>
add_action (&#039;the_content&#039;, &#039;add_button_navigation&#039; );

function add_button_navigation ( $content ) {
    $facebook_share = &quot;&lt;a href=\&quot;#share\&quot; data-toggle=\&quot;tooltip\&quot; data-placement=\&quot;bottom\&quot; data-trigger=\&quot;hover\&quot; class=\&quot;x-share\&quot; title=\&quot;&quot; . __( &#039;Share on Facebook&#039;, &#039;__x__&#039; ) . &quot;\&quot; onclick=\&quot;window.open(&#039;http://www.facebook.com/sharer.php?u=&quot;.urlencode( get_permalink() ).&quot;&amp;t=Share This Story on Facebook &#039;, &#039;popupFacebook&#039;, &#039;width=650, height=270, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0&#039;); return false;\&quot;&gt;Share This Story on Facebook&lt;/a&gt;&quot;;
    $my_custom_text = &#039;&lt;a href=&quot;&#039;.get_previous_posts_link().&#039;&quot;&gt;Previous Story&lt;/a&gt; | &lt;a href=&quot;&#039;.get_next_posts_link().&#039;&quot;&gt;Next Story&lt;/a&gt; | &#039;.$facebook_share;
    if( is_singular(&#039;post&#039;) ) {
        $content .= $my_custom_text;
    }
    return $content;
}
</code></pre>
<p>Please put this code in the child theme&#8217;s functions.php</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138425</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138425</link>
					<pubDate>Tue, 04 Nov 2014 17:38:42 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138449</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138449</link>
					<pubDate>Tue, 04 Nov 2014 18:18:48 +0000</pubDate>
					<dc:creator>dscuba</dc:creator>

					<description>
						<![CDATA[
						<p>Also, I wanted these buttons to go ABOVE the Comments section on my Post page which is a FB Plugin.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138522</guid>
					<title><![CDATA[Reply To: Adding Buttons to my Post Template]]></title>
					<link>https://theme.co/archive/forums/topic/adding-buttons-to-my-post-template/#post-138522</link>
					<pubDate>Tue, 04 Nov 2014 20:42:55 +0000</pubDate>
					<dc:creator>Nabeel A</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>You can add some custom CSS to convert the links into buttons. You&#8217;ll need to replace the previous code first with this one in your child theme&#8217;s function.php file.</p>
<pre><code>function add_button_navigation ( $content ) {
    $facebook_share = &quot;&lt;a class=&#039;x-fb&#039; href=\&quot;#share\&quot; data-toggle=\&quot;tooltip\&quot; data-placement=\&quot;bottom\&quot; data-trigger=\&quot;hover\&quot; class=\&quot;x-share\&quot; title=\&quot;&quot; . __( &#039;Share on Facebook&#039;, &#039;__x__&#039; ) . &quot;\&quot; onclick=\&quot;window.open(&#039;http://www.facebook.com/sharer.php?u=&quot;.urlencode( get_permalink() ).&quot;&amp;t=Share This Story on Facebook &#039;, &#039;popupFacebook&#039;, &#039;width=650, height=270, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0&#039;); return false;\&quot;&gt;Share This Story on Facebook&lt;/a&gt;&quot;;
    $my_custom_text = &#039;&lt;a class=&quot;x-previous&quot; href=&quot;&#039;.get_previous_posts_link().&#039;&quot;&gt;Previous Story&lt;/a&gt; | &lt;a class=&quot;x-next&quot; href=&quot;&#039;.get_next_posts_link().&#039;&quot;&gt;Next Story&lt;/a&gt; | &#039;.$facebook_share;
    if( is_singular(&#039;post&#039;) ) {
        $content .= $my_custom_text;
    }
    return $content;
}</code></pre>
<p>Then via Appearance &gt; Customize &gt; Custom &gt; CSS add the following code:</p>
<pre><code>.x-fb, .x-previous, .x-next {
padding: 15px;
border: 1px solid #eaeaea;
background-color: #eae;
}</code></pre>
<p>You can change the background color of individual button by using their class if needed.</p>
<p>Let us know how this goes!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

