Code Adjustment

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 5 replies, has 2 voices, and was last updated by  Thakksy 1 year, 8 months ago.

  • Author
    Posts
  • #8373

    Thakksy
    Member
    Post count: 321

    Hey guys sorry to bother you, you provided the following code a while back for the smaller share buttons on the bottom of posts and pages but was just wondering if there is a way to adjust it so they don’t display on buddypress and the home page? cheers

    <?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');
    	}
    ?>
  • #8378

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #8404

    Thakksy
    Member
    Post count: 321

    Thanks that, works great.

  • #8405

    Thakksy
    Member
    Post count: 321

    What if i would like to disable it on certain pages like about us and contact page?

  • #8411

    Max
    Staff
    Post count: 3150

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

    Login | Register | Forgot Password?

  • #8418

    Thakksy
    Member
    Post count: 321

    thanks so much, also learnt something too 🙂

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!