Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1099729
    bedingfield
    Participant

    Hi there,

    I would like to add Facebook, twitter & Google + share icons on my blog single post pages so users can post articles on their social media pages.

    Ideally, I would like the icons between date & tags at the top of my page…

    http://elyrunners.club/ironman-bolton/

    Is there this functionality built into X?

    If not, do you have any suggestions? Also, what page would I need to alter to insert code into?

    Thank you.

    #1099735
    Christopher
    Moderator

    Hi there,

    Please update the code in content.php file to :

    <?php
    
    // =============================================================================
    // VIEWS/RENEW/CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Standard post output for Renew.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-wrap">
    
      	<?php if ( is_single() ) : ?>
    
    	  	<div class="x-container max width offset">
    	  	  <div class="blog-width" role="main">
    	    	<?php x_get_view( 'renew', '_content', 'post-header' ); ?>
    	    	<? echo do_shortcode('[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]'); ?>
    	      </div>
    	    </div>
    	    
    	    <?php if ( has_post_thumbnail() ) : ?>
    	      <div class="entry-featured">
    	        <?php x_featured_image(); ?>
    	      </div>
    	    <?php endif; ?>
    
    	    <div class="x-container max width offset">
    	  	  <div class="blog-width" role="main">
    	    	<?php x_get_view( 'global', '_content' ); ?>
    	      </div>
    	    </div>
    
        <?php else : ?>
    
        	<?php x_get_view( 'renew', '_content', 'post-header' ); ?>
    	    <?php if ( has_post_thumbnail() ) : ?>
    	      <div class="entry-featured">
    	        <?php x_featured_image(); ?>
    	      </div>
    	    <?php endif; ?>
    	    <?php x_get_view( 'global', '_content' ); ?>
    
        <?php endif; ?>
        
      </div>
    </article>

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1099729 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>