WordPress.org

Ready to get started?Download WordPress

Forums

pint it , share don't count ): (1 post)

  1. lomelin
    Member
    Posted 1 year ago #

    hello dudes, i have a problem with one theme i develop in based of blank theme, i need to have the 3 counters, pin it, tweet y share, but none works

    this is the url

    the php code `<div id="sm">

    <a href="https://twitter.com/share" class="twitter-share-button" data-via="Artomx" data-related="LomelinCo" data-dnt="true">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>

    <a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink()); ?>&media=<?php echo urlencode(wp_get_attachment_url(get_post_thumbnail_id())); ?>&description=<?php echo urlencode( get_the_title()); ?>" class="pin-it-button" count-layout="none">Pin It</a>
    <script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

    <div style="margin-left:4px; float:right;">
    <script>var fbShare = {
    url: '<?php echo urlencode(get_permalink()); ?>',
    size: 'small',

    }</script>
    <script src="http://widgets.fbshare.me/files/fbshare.js"></script>

    </div>

    </div>`

    please give me the correct code , thanks

Topic Closed

This topic has been closed to new replies.

About this Topic