Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

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

A question regarding the social widgets

Home Forums Misc. General Forums A question regarding the social widgets

  • #12559

    ros87

    subscriber

    Is there a way I can have the facebook like and twitter underneath each featured posts on the home page?

    #17976

    Towfiq I.

    administrator

    Install this plugin:

    http://wordpress.org/extend/plugins/only-tweet-like-share-and-google-1/

    and then open up “layout3.php” and add this line:

    <?php
    if(function_exists('display_social4i'))
    echo display_social4i("small","float-left"); ?>

    after this:

    <?php the_excerpt(); ?>

    #17977

    ros87

    subscriber

    Thanks. I was wondering though if I could remove the icons from my slider experpts. Just use them on the featured posts.

    #17978

    Towfiq I.

    administrator

    from the plugin options, uncheck “display on excerpts”

    #17979

    ros87

    subscriber

    Okay when I did that, the icons disappeared on all of the posts.

    #17980

    Towfiq I.

    administrator

    did you not add the line in index.php file?

    #17981

    ros87

    subscriber

    Yes it was added. Now I am getting the code underneath the posts rather than the social icons.

    #17982

    Towfiq I.

    administrator

    ok. disable the plugin and replace the code you added to index,php with this:

    <div class="tweetme"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text="<?php the_title(); ?>" data-url="<?php the_permalink() ?>" data-via="towfiqi">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>

    <div class="fblike">

    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo get_permalink(); ?>" layout="button_count" show_faces="true" width="450"></fb:like>

    </div>

    #17983

    ros87

    subscriber

    Okay nevermind, figured it out. Thanks

    #17984

    ros87

    subscriber

    Yeah, I actually tried that method from above and it changed my whole layout. I dont know how to change it back, i simply deleted the code you gave me and replaced it back but now my layout is all messed up.

    #17985

    Towfiq I.

    administrator

    maybe you forgot remove the last </div>

    your layout3.php file should look exactly like this one:

    http://pastebin.com/QCkTEujp