WordPress.org

Ready to get started?Download WordPress

Forums

Hupso Share Buttons for Twitter, Facebook & Google+
[resolved] Share Buttons showing up outside Sidebar (8 posts)

  1. stevenmanuel
    Member
    Posted 1 year ago #

    I have share buttons set up to only show in the sidebar of my pages and posts. On the homepage of my website, when I click to load more content at the bottom of the page, the share buttons show up where they shouldn't. They also show up on category pages after loading more content at the bottom. Additionally, after loading more content on a category page, a duplicate row of share buttons appears in the sidebar. Any advice?

    See the problem at these two links after clicking "load more" near the bottom:
    http://www.stvnmnl.com
    http://stvnmnl.com/category/photography/

    - Steven

    http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/

  2. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    You can avoid this by locating code for "read more" in your theme files and disable Hupso hare buttons there. Put this PHP code at the start of "read more" function:
    <?php $HUPSO_SHOW = false; ?>

  3. stevenmanuel
    Member
    Posted 1 year ago #

    having trouble locating the "read more" code. any ideas where it might be? I know it's not your theme, but I'm betting you have more experience at this than me. ;)

  4. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    I would have to look at the code. I suggest you contact theme author and ask him where it is.

  5. stevenmanuel
    Member
    Posted 1 year ago #

    Sorry, I'm not an expert at this. Here is what one of my pages looks like:

    <?php /* if the post has a WP 2.9+ Thumbnail */
    if( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
        <div class="post-thumb">
    
            <?php if( !is_singular() ) { ?>
    
        	    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('blog-large'); ?></a>
    
        	<?php } else {
    
        	    the_post_thumbnail('blog-large');
    
        	} ?>
    
        </div>
    <?php } ?>
    
    <!-- BEGIN .entry-content -->
    <div class="entry-content">
    	<?php
            the_content( __ ('', 'zilla') );
            wp_link_pages(array('before' => '<p><strong>'.__('Pages:', 'framework').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
        ?>
    <!-- END .entry-content -->
    </div>

    It used to say "Read More..." in the '' right before 'zilla'. I've tried placing the code in several places around this area. Am I in the wrong place?

    - Steven

  6. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    Try to place this code before this line:
    the_content( __ ('', 'zilla') ):

    global $HUPSO_SHOW;
    $HUPSO_SHOW = false;

    Does that work?

  7. stevenmanuel
    Member
    Posted 1 year ago #

    That got rid of everything on the homepage, yes! But it also deleted the icons in the sidebar of my posts. The widget is still there, but the icons are just gone.

    Sorry this has been such trouble.

    - Steven

    http://www.stvnmnl.com

  8. stevenmanuel
    Member
    Posted 1 year ago #

    I fixed it by adding

    `global $HUPSO_SHOW;
    $HUPSO_SHOW = true;'

    in sidebar.php.

    All good. Thank you so much! And thanks for adding custom icons!

    - Steven

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.