WordPress.org

Ready to get started?Download WordPress

Forums

ShareThis: Share Buttons and Social Analytics
Plugin not show on individual page or post (5 posts)

  1. bankja
    Member
    Posted 1 year ago #

    Hi,

    I just noticed today that ShareThis plugin that I installed on my website (http://igc.in.th) is currently showing share buttons only on main blog page.

    When click into individual page or post, share buttons went missing. It used to work well and I don't know what triggered this problem. It would be very nice if you can guide me on how to fix this.

    Thanks,

    WordPress 3.4.2
    ShareThis 5.4
    Jetpack 2.0.2

    http://wordpress.org/extend/plugins/share-this/

  2. sharethissupport
    Member
    Posted 1 year ago #

    Hi Sir,
    Jetpack 2.0 is breaking a whole bunch of other plugins also.You can see the wordpress forum issues:

    http://wordpress.org/support/topic/jetpack-now-breaks-addthis
    http://wordpress.org/support/topic/newest-jetpack-breaking-powerpress
    http://wordpress.org/support/topic/jetpack-conflicting-with-other-plugins
    Right now you can try adding the buttons manually to your wordpress blog.

    Here are the detailed steps:
    Sharethis script and span tags go on the page where you want the buttons to appear and they also determine what kind of button appears as well as what URL and title it shares. You will have to put 'script tags' in your Main index template(index.php) and 'span tags' in Single Post template(single.php).

    Here is the basic span for just the ShareThis button:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <span class="st_sharethis" st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText="ShareThis"></span>

    You can change the class of the span to determine the button that appears. For example class="st_twitter" will make a twitter icon and class="st_email_vcount" will make a email vertical counter button.

    However, adding code in index.php and single.php will not display sharethis buttons on the blog page but will show buttons whenever an individual post is opened.
    If you wish to display sharethis buttons on the blog page ,you will have to put 'span tags' in (loop.php).

    In loop.php,
    1. put span tags just above the line "<div class="entry-utility">" to display buttons at the end of each post on the blog page.

    <span  class='st_sharethis' ></span>
       <div class="entry-utility">

    2. to display buttons at the beginning of each post on the blog page,put span tags just below the lines

    <h2 class="entry-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
       <div class="entry-meta">
        <?php twentyten_posted_on(); ?>
       </div><!-- .entry-meta -->
    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    Hope this helps.
    In case of any issues, please feel free to contact us.

    Regards,
    SharethisSupport Team

  3. bankja
    Member
    Posted 1 year ago #

    Thanks so much! I'll try it.

  4. speed101
    Member
    Posted 1 year ago #

    Hi Im having the same problem and I do not have jetpack. ShareThis plugin is currently showing share buttons only on main blog page. When click into individual page or post, share buttons went missing. See: http://www.euro-freelancers.eu I would like to have the exact opposite: the sharethis plugin on individual posts but not on main page. Can anyone helps please?

  5. helgatheviking
    Member
    Posted 1 year ago #

    Just confirming that this problem (lack of automatically added buttons) is not limited to a conflict with JetPack.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.