Forums

[resolved] sociable in templates (7 posts)

  1. opo
    Member
    Posted 3 years ago #

    I'm using Sociable in my sites to have social interaction and it has been very cool to have social integration for my sites, however I find it quite 'stiff' having to use only the default auto-embedding of the plug as it lies only in one place and also having to hack it by CSS, which I find very un comfortable... is it possible to include a embed php code to use in tamplates for the next version? that way one can be able to put sociable right where anyone may want to.

    thank you in advance.

    PS: is there already a way to do this? if you know of a working php method to do so, let me know.

    http://wordpress.org/extend/plugins/sociable/

  2. afandi2
    Member
    Posted 3 years ago #

    man, im having trouble hate it when PLUGINS AND TEMPLATES CRASH TOgether.. things get messy.. sigh

  3. shopgirl
    Member
    Posted 3 years ago #

    You can add the Sociable buttons anywhere in your template by putting this where you want them:

    <?php if (function_exists('sociable_html')) {
    echo sociable_html();
    } ?>

  4. jronaldlee
    Member
    Posted 3 years ago #

    Great tip, Shopgirl, thanks very much!

  5. opo
    Member
    Posted 3 years ago #

    AWESOME!
    THANKS A LOT! :D

  6. JohnPope
    Member
    Posted 3 years ago #

    Just remember to turn off the position on individual post pages checkbox in the preferences, otherwise you will spend 10 minutes like I just did wondering why the hell I had it at the start and end of my posts.

    I'm so dense sometimes!

  7. opo
    Member
    Posted 3 years ago #

    lol. For some reason I remembered that was configurable befor putting the new code :P not that I consciously remembered it... it just came up in my mind hehe

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags