Forums

[resolved] Change the position where Sociable is display (6 posts)

  1. kushalkoolwal
    Member
    Posted 10 months ago #

    Hi,

    I would like to change the position where sociable is displayed. For example, right now the sociable is displayed at the end of each of by blog post like this.

    Now I would like that my Google Ads are displayed after the end of the post and then below Google ads Sociable is displayed. Right now the order is reversed i.e. First the sociable is displayed and then the google ads.

    Thanks

  2. stvwlf
    Member
    Posted 10 months ago #

    Hi - From the Sociable website (below) - to move them on your main blog page, edit index.php in your theme's folder. ( You can do the same on any other templates you need this change on. single.php for the single post page, for example )

    Changing the location of the icons

    Instead of attaching the buttons to the end of the post, you can also choose to work them into your template. You can do that simply by adding the following code anywhere you'd like the buttons to appear:

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

  3. Altstatten
    Member
    Posted 9 months ago #

    Hmmmm. I just copied/pasted that code, put it in my index.php file and now I have TWO sets of sociable icons. Either theres some switch I need to flip in the plugin setup or code, or something in my index.php file code I'm not reading right.

    Any help is appreciated.

    <div class="title">" rel="bookmark"><?php the_title(); ?></div>
    <div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> |<?php if(function_exists('the_views')) { the_views(); } ?>]</div>
    <?php $values = get_post_custom_values("Headline");?>
    " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
    $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
    alt="<?php the_title(); ?>" class="left" width="300px" height="275px" />

    <?php the_excerpt(); ?>
    " rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story »
    <?php if (function_exists('sociable_html')) {
    echo sociable_html();
    } ?>
    <?php endwhile; ?>
    </div>

  4. buzz_lightyear
    Member
    Posted 9 months ago #

    hi Altstatten,
    i would say, that you have to go to Sociable Options in your Dashboard and disable ALL POSITIONS there EXCEPT RSS (if you use that one).
    Don't forget to save the setup.

    The link above uses dummy domain "yourdomain.com" and you have to use your own domain instead.

    buzz

  5. Altstatten
    Member
    Posted 9 months ago #

    Well, that did the trick! Always something simple. Thanks, buzz!

  6. upoint
    Member
    Posted 2 months ago #

    thanks ur answer.good.
    marked!

Reply

You must log in to post.

About this Topic

Tags