Title: Share Buttons
Last modified: August 21, 2016

---

# Share Buttons

 *  Resolved [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/)
 * Hi Alexander,
 * I am using the version you are providing at your website. Can you tell me how
   can i have the share buttons on every page? For the moment, they appear only 
   at posts. I want them to appear at pages, posts and at front-page as a widget.
   Can you help me? Thanks in advance 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [WordDug](https://wordpress.org/support/users/worddug/)
 * (@worddug)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523570)
 * Hi,
 * this is something I would also like to add – to have the social share buttons
   on the pages as well as posts.
 * If someone is able to let us know how this is done.
 * thanks
 *  [Admiral](https://wordpress.org/support/users/aadmiral/)
 * (@aadmiral)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523573)
 * Hey,
 * You can try replace some code in page.php using child-theme or page templates.
 * Locate:
 *     ```
       <div class="entry themeform">
         <?php the_content(); ?>
         <div class="clear"></div>
       </div><!--/.entry-->
       ```
   
 * And replace this with code:
 *     ```
       <div class="entry themeform" <?php if ( !ot_get_option('sharrre') ) { echo 'share'; }; ?>">
       	<div class="entry-inner">
       		<?php the_content(); ?>
       	</div>
       	<?php if ( !ot_get_option('sharrre') ) { get_template_part('inc/sharrre'); } ?>
       	<div class="clear"></div>
       </div><!--/.entry-->
       ```
   
 * It should work.
 *  [Admiral](https://wordpress.org/support/users/aadmiral/)
 * (@aadmiral)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523577)
 * minor typo:
    `<div class="entry themeform <?php if ( !ot_get_option('sharrre')){
   echo 'share'; }; ?>">`
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523586)
 * Hi Admiral! The code you provided worked fine. Also, how can i add them as a 
   widget at the frontpage? 🙂
 *  [Admiral](https://wordpress.org/support/users/aadmiral/)
 * (@aadmiral)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523589)
 * You can add a standart widget “Text Area” which contain simple text or HTML code
   and paste this line into it:
    `<?php if ( !ot_get_option('sharrre') ) { get_template_part('
   inc/sharrre'); } ?>`
 * I think it would have worked too.
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523600)
 * I tried it but it doesn’t appear anything.
 *  [WordDug](https://wordpress.org/support/users/worddug/)
 * (@worddug)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523689)
 * This worked fine for me (to get them onto the pages). Thank you.
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523693)
 * For the pages it works for me too. I am talking about the widget on the frontpage
   that it doesn’t work…
 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523697)
 * If You use a child-menu and Child theme You have to put child-menu.php into page-
   tempates directory in Your Child theme directory. Then You have to paste that
   piece of code to that file for proper working with that feature.
 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523723)
 * After update to 2.1.1 there is a need to change code to :
 *     ```
       <div class="entry themeform" <?php if ( !ot_get_option('sharrre') != 'off' ) { echo 'share'; }; ?>">
       	<div class="entry-inner">
       		<?php the_content(); ?>
       	</div>
       	<?php if ( !ot_get_option('sharrre') != 'off' ) { get_template_part('inc/sharrre'); } ?>
       	<div class="clear"></div>
       </div><!--/.entry-->
       ```
   
 *  Thread Starter [Andreas](https://wordpress.org/support/users/slipkot/)
 * (@slipkot)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523725)
 * Thanks for your help! You have a typo mistake. The correct is:
 *     ```
       <div class="entry themeform <?php if ( !ot_get_option('sharrre') != 'off' ) { echo 'share'; }; ?>">
       	<div class="entry-inner">
       		<?php the_content(); ?>
       	</div>
       	<?php if ( !ot_get_option('sharrre') != 'off' ) { get_template_part('inc/sharrre'); } ?>
       	<div class="clear"></div>
       </div><!--/.entry-->
       ```
   
 * 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Share Buttons’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Andreas](https://wordpress.org/support/users/slipkot/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/share-buttons-8/#post-4523725)
 * Status: resolved