Code Adjustment

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

Status: resolved
  • This topic has 5 replies, 2 voices, and was last updated 4 y, 3 mo by  Thakksy.
Viewing 5 reply threads
  • Author
    Posts
    • #8373

      Thakksy
      Member

      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', 'wpthms'),
      			),
      			'facebook' => array(
      				'title' => __('Facebook', 'wpthms'),
      			),
      			'google-plus' => array(
      				'title' => __('Share on Google+', 'wpthms'),
      			),
      			'linkedin' => array(
      				'title' => __('Share on Linkedin', 'wpthms'),
      			),
      			'pinterest' => array(
      				'title' => __('Pin this Post', 'wpthms'),
      			),
      			'tumblr' => array(
      				'title' => __('Share on Tumblr', 'wpthms'),
      			),
      			'more' => array(
      				'title' => __('More services', 'wpthms'),
      			),
      		);
      
      		yt_site_social_sharing_buttons( $styles, $services, $class = 'pull-right');
      	}
      ?>
    • #8378

      Max
      Staff

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

      Login | Register | Forgot Password?

    • #8404

      Thakksy
      Member

      Thanks that, works great.

    • #8405

      Thakksy
      Member

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

    • #8411

      Max
      Staff

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

      Login | Register | Forgot Password?

    • #8418

      Thakksy
      Member

      thanks so much, also learnt something too 🙂

Viewing 5 reply threads
  • You must be logged in to reply to this topic.

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

© Copyright 2019 by wpthms.com. All Rights Reserved.