test melih
 melih
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #958178

    Hi
    You can remove or comment out the code from
    /templates/ja_directory/html/com_k2/directory/item.php
    Below is the code :

    <?php if($this->item->params->get('itemTwitterButton',1) || $this->item->params->get('itemFacebookButton',1) || $this->item->params->get('itemGooglePlusOneButton',1)): ?>
        <!-- Social sharing -->
        <div class="itemSocialSharing">
    
            <?php if($this->item->params->get('itemTwitterButton',1)): ?>
            <!-- Twitter Button -->
            <div class="itemTwitterButton">
                <a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"<?php if($this->item->params->get('twitterUsername')): ?> data-via="<?php echo $this->item->params->get('twitterUsername'); ?>"<?php endif; ?>>
                    <?php echo JText::_('K2_TWEET'); ?>
                </a>
                <script type="text/javascript" src="//platform.twitter.com/widgets.js">&lt;/script&gt;
            </div>
            <?php endif; ?>
    
            <?php if($this->item->params->get('itemFacebookButton',1)): ?>
            <!-- Facebook Button -->
            <div class="itemFacebookButton">
                <div id="fb-root"></div>
                <script type="text/javascript">
                    (function(d, s, id) {
                      var js, fjs = d.getElementsByTagName(s)[0];
                      if (d.getElementById(id)) return;
                      js = d.createElement(s); js.id = id;
                      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
                      fjs.parentNode.insertBefore(js, fjs);
                    }(document, 'script', 'facebook-jssdk'));
                &lt;/script&gt;
                <div class="fb-like" data-send="false" data-width="200" data-show-faces="true"></div>
            </div>
            <?php endif; ?>
    
            <?php if($this->item->params->get('itemGooglePlusOneButton',1)): ?>
            <!-- Google +1 Button -->
            <div class="itemGooglePlusOneButton">
                <g:plusone annotation="inline" width="120"></g:plusone>
                <script type="text/javascript">
                  (function() {
                    window.___gcfg = {lang: 'en'}; // Define button default language here
                    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                    po.src = 'https://apis.google.com/js/plusone.js';
                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                  })();
                &lt;/script&gt;
            </div>
            <?php endif; ?>
    
            <div class="clr"></div>
        </div>
        <?php endif; ?>
    

    Beside you can see the social option in K2 > item > item options.

    vernontee Friend
    #958188

    thanks.. i used the item options method in parent category

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  vernontee 8 years, 5 months ago.

The topic ‘How to remove the social share buttons?’ is closed to new replies.