How to modify like/tweet buttons under sharing option??

Posted in: Newspaper
Post count: 33

hi,

this is how we want to look like: http://screencast.com/t/8LFQEzQa653

standard appearance looks messy!!

thnx

Post count: 3343

Hi,

1. http://screencast.com/t/i0LNtNNSRe
2. Replace this code: http://screencast.com/t/cKKENuf8p7OG with this:

$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), 'single-post-thumbnail' );
            $buffy .= '
                <div class="td-tags-and-social-wrapper-box td-tags-and-social-wrapper-box-bottom-line">
                    <a class="td-social-sharing-buttons td-social-twitter" href="https://twitter.com/intent/tweet?text=' . $this->title . '&url=' . urlencode(get_permalink()) . '&via=' . get_bloginfo('name') .'" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;" ><div class="td-sp td-sp-share-twitter"></div><div class="td-social-but-text">Twitter</div></a>
                    <a class="td-social-sharing-buttons td-social-facebook" href="http://www.facebook.com/sharer.php?u=' . urlencode(get_permalink()) . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-facebook"></div><div class="td-social-but-text">Facebook</div></a>
                    <a class="td-social-sharing-buttons td-social-google" href="http://plus.google.com/share?url=' . get_permalink() . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-google"></div><div class="td-social-but-text">Google +</div></a>
                    <a class="td-social-sharing-buttons td-social-pinterest" href="http://pinterest.com/pin/create/button/?url=' . get_permalink() . '&media=' . (!empty($image[0]) ? $image[0] : '') . '" onclick="window.open(this.href, \'mywin\',
\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;"><div class="td-sp td-sp-share-pinterest"></div><div class="td-social-but-text">Pinterest</div></a>';
            $buffy .= '<div class="td-social-like-tweet">';
            $buffy .= '<ul>';
            $buffy .= '<li class="td-like-tweet-twitter">';
            $buffy .= '<a href="https://twitter.com/share" class="twitter-share-button" data-url="' . $this->href . '" data-text="' . $this->title . '" data-via="' . td_util::get_option('tds_' . 'social_twitter') . '" data-lang="en">tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>';
            $buffy .= '</li>';

            $buffy .= '<li class="td-like-tweet-facebook">';
            $buffy .= '<iframe src="http://www.facebook.com/plugins/like.php?href=' . $this->href . '&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21" style="border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;"></iframe>';
            $buffy .= '</li>';

            $buffy .= '<li  class="td-like-tweet-google">';
            $buffy .= '
                    <div class="g-plusone" data-size="medium" data-href="' . $this->href . '"></div>
                    <script type="text/javascript">
                        (function() {
                            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>
                    ';
            $buffy .= '</li>';
            $buffy .= '</ul>';
            $buffy .= '</div></div>';

3. Add this CSS in Theme panel -> Custom CSS

.td-social-like-tweet {
    margin-bottom: 0px;
}
.td-social-like-tweet ul {
    margin: 0px;
}

Thanks!

Post count: 37

Hello, I’m running the latest version of Newspaper and I was able to implement the buttons. now how do I remove this ones –> http://i.imgur.com/gaF81Qy.jpg

I tried commenting this line in loop-single <?php echo $td_mod_single->get_social_like_tweet();?> But buttons are still showing.

Post count: 555

@quitifua6 go in the theme settings in your admin panel and turn them off…

Theme panel,then posting settings and look way down the bottom and you will see “sharing” in there is where you can turn them off…

Post count: 37

I tried but it turns everything off http://i.imgur.com/WMSnw27.jpg
I just want to remove the ones highlighter blue in this picture http://i.imgur.com/gaF81Qy.jpg

Post count: 555

Those are the tags..to turn them off you need to go in theme panel and then posting settings and in the list on the top look for “SHOW TAGS ON POST” and turn it off…

Post count: 555

What i told you to do before in my first reply is how you can removed them with out any editing etc…

Only turn off “ARTICLE SHARING” not the “ARTICLE LIKE/TWEET/G+”

Post count: 37

Thanks for your time Steven, I just want it to look like this http://i.imgur.com/QAk2wtT.jpg

Post count: 555

Only turn OFF “ARTICLE SHARING” and leave “ARTICLE LIKE/TWEET/G+” ON

Post count: 37

Ok perfect but now how do I move it up to where the other one was http://i.imgur.com/sbvslV2.png

Post count: 38

@quitifua6 Try to use the code posted from @Marius

Post count: 37

What @marius share works fine, but I want to remove the highlighted buttons in this picture http://i.imgur.com/gaF81Qy.jpg

Post count: 3343
Post count: 37

Marius deleting all that breaks the single post

Post count: 854

hi,

I don’t know what you deed , Marius solution works fine.

Thanks for you message.
Radu A.

Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic.