[Plugin: Sharedaddy] Adding this manually
-
Hi,
I love this plug in very much. Just wondering if there is a manual way to put it on my blog?
right now where it is placed makes my posts look crazy and I would like to move it around where I want it to show up..thanks.
-
There isn’t, but that’s a good suggestion – I’ll add a template tag in the next version.
In 0.2.5 you can use:
echo sharing_display();
Will I be adding this code in my Single.PHP file?
echo sharing_display();
I added above said code, it did not work for me :(. I am wordpress newbie. so not sure whether I am doing it correct.
Also how do I add Twitter, facebook on front page and all other options in my Post. Can I have 2 settings on Front page and POST?
Also I would like to have the icons displayed at the top of the POSt, but this allowing me to add only at the end of POST 🙂
Please reply
Thanks and regards
SiRu
Yes, it can go in single.php
Do you have the sharing option enabled to show on single posts?
There is currently no option to show above posts, but if you use the template tag you can position it anywhere you want.
im running wordpress 3.0.1 will the echo work?
see the site here
http://rapfactz.com/site/the background of each post is going to be a thought bubble and along the bottom is where i wanted to place the buttons
right now when i add a background the buttons go into the thought bubble
Yes, it will work in WP 3.0.1 – the 0.2.5 above was referring to the version of the plugin.
Thanks for the cool work, but unfortunately I can not insert sharedaddy via the “echo sharing_display();” manually on a single.php file. Sharedaddy even doesn’t show up on a single.php without inserting it manually.
Can anyone please give me a hint why sharedaddy works fine with the 2010-standard theme but doesn’t work correctly in my theme?
Sharedaddy shows up on index.php but not in single posts.Not sure I understand – you say you cannot insert it manually, but then say it doesn’t show up unless inserted manually.
Sharedaddy still needs to be configured to appear on posts or index pages, and the template function only works when inside the loop.
Hi John!
Thanks for your quick response. That’s exactly the point where I got stuck. Adding the plugin manually ( echo sharing_display(); ) works perfect in my index.php or home.php file but the plugin output doesn’t show up on my single.php.
I’ve even got the same problem when I don’t insert the plugin manually.
It’s so confusing because your plugin rocks.Thanks for all your help.
Using
<?php echo sharing_display(); ?>
I have been trying to add it below my content like this.
<div class="entry-content"> <p>lorem ipsum dolor sit amet...</p> </div> <div class="entry-meta"> <p>yada yada yada</p> </div> <?php echo sharing_display(); ?>
But I never get past the closing </div> from <div class=”entry-content”>
It works perfectly fine to add it above.
Anyone got a clue?
fonkyflo, have you tried another theme?
hixen, the function must be called inside the WordPress loop.
John, i have it inside the loop.
Here is my code
[Code moderated as per the Forum Rules. Please use the pastebin]
The echo sharing_display() always get printed out before my attachment stuff. If your wondering what that is, here is a link:
http://www.tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/It’s like plugin looks for the the_content() and prints it right after it. But if it founds sharing_display() before the_content() it happily prints it out, but not after.
Is there any way I can fix this?
Having the same problem. It´s not possible for me to display the share buttons somewhere after the_content(). My theme´s containing a div to display some postinfos like author, rss, trackback etc. That´s the place i want to add the share buttons but it doesn´t work. It´s always displayed directly after the_content().
URL: http://www.be-infected.de
[Code moderated as per the Forum Rules. Please use the pastebin]
I would like to place the buttons at the end of div underpost.
I did never find a solution to this, but since it worked fine to place it above the the_content() i did that and then wrapped it up in a container and absolute positioned it where I wanted it. It was not pretty but it worked for me.
Just to give you an example what i did:
<div id="content" style="position:relative;"> <div class="sharing" style="position:absolute; bottom:0px;"> <?php echo sharing_display(); ?> </div> <?php the_title(); ?> <?php the_content(); ?> </div> <!-- #content -->
As I said its not pretty, but it did work for me.
Hi!
Thanks for your reply but it isn´t useful for me. Any other ideas?
- The topic ‘[Plugin: Sharedaddy] Adding this manually’ is closed to new replies.