Remove Share Buttons From Home Page

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

This topic contains 4 replies, has 2 voices, and was last updated by  Thakksy 1 year, 2 months ago.

  • Author
    Posts
  • #12136

    Thakksy
    Member
    Post count: 322

    Hey guys,

    A while ago i added the small share buttons at the bottom of pages and posts excluding the forums and the home page, below was the original code you provided:

    <?php
    if( function_exists('yt_site_social_sharing_buttons') && !is_search() ){
    		
    
    		$styles = apply_filters( 'yt_site_social_sharing_services_styles', array(
    			'style' => 'color',
    			'size'	=> 'small'
    		), 'style1' );
    
    		$services = array(
    			'twitter' => array(
    				'title' => __('Twitter', 'yeahthemes'),
    			),
    			'facebook' => array(
    				'title' => __('Facebook', 'yeahthemes'),
    			),
    			'google-plus' => array(
    				'title' => __('Share on Google+', 'yeahthemes'),
    			),
    			'linkedin' => array(
    				'title' => __('Share on Linkedin', 'yeahthemes'),
    			),
    			'pinterest' => array(
    				'title' => __('Pin this Post', 'yeahthemes'),
    			),
    			'tumblr' => array(
    				'title' => __('Share on Tumblr', 'yeahthemes'),
    			),
    			'more' => array(
    				'title' => __('More services', 'yeahthemes'),
    			),
    		);
    
    		yt_site_social_sharing_buttons( $styles, $services, $class = 'pull-right');
    	}
    ?>

    At the moment i’m using the code in content-page.php (new from version 2) within the child theme. For some reason the small share buttons are now showing at bottom of home page again. Could you please advise how to remove just on home page.

    Here’s an image showing the share buttons: https://goo.gl/photos/G1gLC8mAL8ijT1wK9

  • #12156

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12162

    Thakksy
    Member
    Post count: 322

    I changed the conditional tags but no luck. I placed the code under </div><!– .entry-content –>

  • #12165

    Max
    Staff
    Post count: 3150

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #12166

    Thakksy
    Member
    Post count: 322

    yep it worked. Thanks for the help 🙂

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!