logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Inserting Share Buttons on a random place

I would like to insert the "Shareaholic" plugins button on a random place on the site.
(The plugin says i can do that and provides me with this:

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

)

I would like to place it on the sidebar

Where now stands:
"Menschen
8 | Oct | 11
By: fridolinweiner
Filed under Bilder.
Bookmark the permalink.
Leave a comment
<- here I would like to have the buttons...

I guess i have to change something somewhere in the php files. but where?

I am an absolute wp dummie, so have fun trying to explain it to me XD


Edit:
www.fridolinweiner.de

theme
Autofocus+ pro

This question has been answered.

Fridolin Weiner | 10/08/11 at 4:06pm Edit

Previous versions of this question: 10/08/11 at 4:15pm | 10/08/11 at 4:17pm

(4) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    10/08/11
    4:14pm
    Fahd Murtaza says:

    Which theme are you using? Any link to your site?

    • 10/08/11 4:19pm

      Fridolin Weiner says:

      Edited

    • 10/08/11 4:20pm

      Fahd Murtaza says:

      what widget are you using in the sidebar? Usually its sidebar.php where you need to insert the code.

    • 10/08/11 4:24pm

      Fridolin Weiner says:

      I don't know if that's what you need:
      but i went to
      Appearance/Editor
      Sidebar (sidebar.php)
      I am not even shure if that is that place I want to have it.
      (I just want to have it on the right side of the post)

      I copied the Code for you

      <?php
      /**
      * The Sidebar containing the Singlular Sidebar widget areas.
      */
      ?>

      <?php if ( is_active_sidebar( 'singlular-widget-area' ) ) : ?>

      <aside id="singlular-sidebar" class="widget-area" role="complementary">
      <ul class="xoxo">

      <?php

      if ( ! dynamic_sidebar( 'singlular-widget-area' ) ) : ?>

      <?php dynamic_sidebar( 'singlular-widget-area' ); ?>

      <?php endif; // end Singlular Widget Area ?>

      </ul>
      </aside><!-- #singlular-sidebar .widget-area -->

      <?php endif; // end singlular sidebar check ?>

    • 10/08/11 4:43pm

      Fahd Murtaza says:

      Simple

      <?php

      /**

      * The Sidebar containing the Singlular Sidebar widget areas.

      */

      ?>



      <?php if ( is_active_sidebar( 'singlular-widget-area' ) ) : ?>



      <aside id="singlular-sidebar" class="widget-area" role="complementary">

      <ul class="xoxo">



      <?php



      if ( ! dynamic_sidebar( 'singlular-widget-area' ) ) : ?>



      <?php dynamic_sidebar( 'singlular-widget-area' ); ?>



      <?php endif; // end Singlular Widget Area ?>



      </ul>

      </aside><!-- #singlular-sidebar .widget-area -->



      <?php endif; // end singlular sidebar check ?>

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


      Might need some CSS fixes for apperance, let me know. if it works.

  • avatar
    Last edited:
    10/08/11
    4:22pm
    Julio Potier says:

    Hello

    i can do this :
    check this out :
    http://awesomescreenshot.com/0cdlzvp7b

    (made with firebug)

    Just give me ftp or admin acces ti website, i need to see the theme, i can not just give magic code here.

    Thank you !

    • 10/08/11 4:40pm

      Fridolin Weiner says:

      any progress?
      ^^
      Does the FTP login i sent you work at least?

    • 10/08/11 4:45pm

      Julio Potier says:

      I replied you that the login:pass is not correct check your PMs ;)

    • 10/08/11 5:22pm

      Fridolin Weiner says:

      you're my man!

      BTW

      thank you for the explanation via pm.

  • avatar
    Last edited:
    10/08/11
    4:29pm
    lalulula says:

    hi, nice blog :)

    like all in life, you should simply try and see what happens. Just be carefull and remember exactly what you did, so if you dont like it, you can undo it.

    try putting the code under :

    <?php endif; // end singlular sidebar check ?>

    and see haw it looks. if not try other location within the Sidebar.php file (that is if you whant it on the rigth side of the post).
    dont be afraid to experiment :) it is fun!

    • 10/08/11 4:34pm

      Fridolin Weiner says:

      i erased the whole page 4 time now, because i didn't know how to fix problems i have caused by just experimenting XD

      thats why i pay money now...

  • avatar
    Last edited:
    10/08/11
    4:42pm
    Luis Cordova says:

    Ok first of all to make it more slick you have to install a plugin to allow you to insert some widget rigth below the one you already have within your sidebar slot. There is a simple samsarin php widget you can install.

    Here is the link to that widget but you can easily install through the dashboard widget
    http://wordpress.org/extend/plugins/samsarin-php-widget/

    Second, after that, you go to widget view and drag and drop one samsarin widget right below where you want it or anywhere else you want to display it.

    Third, you basically open the contents of the samsarin widget and then just insert the code you were told above.

    That is all, the other methods will require you to be an expert or other :)

    Previous versions of this answer: 10/08/11 at 4:42pm

    • 10/08/11 4:38pm

      Fridolin Weiner says:

      This place sadly isn't listed under the widgets...
      (Or i just can't find it, but if I insert anything there (like category nothing changes on that particular place, i can just change the top and the bottom of the post...)

This question has expired.



Luis Abarca, Fridolin Weiner voted on this question.



Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.