WordPress.org

Ready to get started?Download WordPress

Forums

Adding sociable in the same line with wp-email ? (5 posts)

  1. Rasheed Bydousi
    Member
    Posted 5 years ago #

    Hello,

    I am interested to add sociable and wp-email in the same line in my theme.

    Here is the code in single.php:

    <div id="sendto">
    <?php if(function_exists('wp_email')) { email_link(); } ?> | <?php if (function_exists('sociable_html')) {
      echo sociable_html(Array("Reddit", "del.icio.us"));
    } ?>
    </div>

    Here is the result in my theme:
    http://img166.imageshack.us/img166/8529/3eefr6.jpg

    How can I adjust them in the same line ?

    Thanks

  2. Joost de Valk
    Member
    Posted 5 years ago #

    Sociable outputs an <ul>, so to get them on the same line, you'd have to disable the sociable.css from loading, and then set ul.sociable to display: inline.

  3. Joost de Valk
    Member
    Posted 5 years ago #

    But I'll look into replacing the print and email icons with lester chans email and print plugins if they're installed...

  4. Rasheed Bydousi
    Member
    Posted 5 years ago #

    Thanks joostdevalk,

    I disabled sociable.css from loading and added this line to my theme's style:

    ul.sociable {
    display: inline;
    }

    Here is the result:
    http://img444.imageshack.us/my.php?image=4546of9.jpg

  5. Rasheed Bydousi
    Member
    Posted 5 years ago #

    joostdevalk ?

Topic Closed

This topic has been closed to new replies.

About this Topic