How do I hide unused buttons?
-
I do not want to use the youtube button. Is it possible to hide it?
https://www.ads-software.com/plugins/puretheme-slide-social-tabs/
-
I just commented out the youtube part of the php file. So now it is hidden.
I modified the puretheme-social file after today’s update to display only the social media icons that the user has entered in the plug in settings.
<?php echo PTSST_get_setting( 'pure_social_tabs', 'general', 'custom-css' ); ?> <div class="main_social"> <?php $facebook = PTSST_get_setting( 'pure_social_tabs', 'general', 'facebook' );?> <?php if($facebook!=''){ ?> <div class="facebook_area on"> <div class="facebook_left"> <i class="fa fa-facebook c_facebook"></i> <iframe allowtransparency="true" frameborder="0" scrolling="no" src="https://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F<?php echo $facebook;?>&width=240&height=346&colorscheme=light&show_faces=true&border_color&stream=false&header=false" style="border: 0px solid #fff; height: 346px; overflow: hidden; width: 240px;"></iframe> </div> </div> <?php } ?> <?php $twitter = PTSST_get_setting( 'pure_social_tabs', 'general', 'twitter' );?> <?php if($twitter!=''){ ?> <div class="twitter_area on"> <div class="twitter_left"> <i class="fa fa-twitter c_twitter"></i> <div style="width:248px;font-size:8px;text-align:right;height:225px"> <div id="twitter-box"></div> <script> var tw_user = '<?php echo $twitter;?>'; var tw_width = 248; var tw_height = 325; var no_face = 10; (function() { var tw_box = document.createElement('script'); tw_box.type = 'text/javascript'; tw_box.async = true; tw_box.src = '<?php echo '' . plugins_url( 'js/twitter.js' , __FILE__ ) . '';?>'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(tw_box); })(); </script> <div class="hidebar"></div> </div> </div> </div> <?php } ?> <?php $gplus = PTSST_get_setting( 'pure_social_tabs', 'general', 'gplus' );?> <?php if($gplus!=''){ ?> <div class="google_area on"> <div class="google_left"> <i class="fa fa-google-plus c_google"></i> <div style="float: left; margin: 10px 10px 10px 15px;"> <div class="g-plus" data-action="followers" data-height="250" data-href="https://plus.google.com/<?php echo $gplus;?>" data-source="blogger:blog:followers" data-width="270"> </div> <script type="text/javascript">(function () {window.___gcfg = {'lang': 'en'};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);})();</script> </div> </div> </div> <?php } ?> <?php $youtube = PTSST_get_setting( 'pure_social_tabs', 'general', 'youtube' );?> <?php if($youtube!=''){ ?> <div class="youtube_area on"> <div class="youtube_left"> <i class="fa fa-youtube c_youtube"></i> <div style="float:left;margin:1px 0px 0px 2px;"> <iframe src="https://www.youtube.com/subscribe_widget?p=<?php echo $youtube;?>" style="border: 0 none;height: 70px;margin-top: -2px;width: 220px;margin-left: -3px;" scrolling="no" frameBorder="0"></iframe> </div> </div> </div> <?php } ?> </div>
We beg a pardon to make you unhappy. We need to modify the plugin for the twitter widget purpose. So, please update the plugins and read the configuration guideline under “Installation” tab. Its 100% working.
It you want to hide youtube button then you don’t need to edit php code. Just simply insert the custom css in the admin setting section name “Custom CSS”. Place the css code below:
.youtube_area{display:none}
We beg a pardon to make you unhappy. We need to modify the plugins for twitter widget purpose. So update it and read the instruction under “Installation” tab to configure your social profile. Its 100% working!!!
If you don’t want to display youtube button then you don’t need to edit any php file just insert custom css in the admin setting panel name “Custom CSS”. Just insert the css code below:
.youtube_area{display:none}
Thanks. Its our pleasure that you work on it. We will update the plugin very soon..
I’m was not unhappy with anything in the plug in itself. It is a very nice and very new plug in, I just wanted you to know the bugs that were in it.
feel free to put that code in your next update. It’ll get rid of having annoying empty boxes come up.
resolved
- The topic ‘How do I hide unused buttons?’ is closed to new replies.