Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5139

    Hello! I want to change the date and the tweet button in the side of the post with three simple buttons for Facebook, Twitter and Google Plus or to add a like, a follow and a +1 button for each post! How can i do this?

    #49007

    Hey,

    I’m not sure how to implement the social services but you can place the code in single.php. Please search for:

    <div class="date_container">
    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    <?php if($k_option['single']['acc_tw'] != '') { ?>
    <div class="tweetmeme">
    <script type="text/javascript">
    tweetmeme_source = '<?php echo $k_option['single']['acc_tw']; ?>';
    tweetmeme_url = '<?php echo get_permalink() ?>';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
    </div>
    <?php } ?>
    <span class='date_container_bottom'></span>
    </div><!-- end date -->

    The first three spans:

    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>

    build the date. The code under it:

    <?php if($k_option['single']['acc_tw'] != '') { ?>
    <div class="tweetmeme">
    <script type="text/javascript">
    tweetmeme_source = '<?php echo $k_option['single']['acc_tw']; ?>';
    tweetmeme_url = '<?php echo get_permalink() ?>';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
    </div>

    builds the social icons.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to change the date and tweet button?’ is closed to new replies.