Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Put AddThis in Kicker or Footer (http://forum.bytesforall.com/showthread.php?t=6770)

nick51 Apr 18, 2010 10:54 AM

Put AddThis in Kicker or Footer
 
I've added the addthis script
<?php do_action( 'addthis_widget' ); ?>
to my kicker and it does not show up. Anyone have an idea what I'm doing wrong?

site is http://www.hackmyaxe.com

Thanks, Nick

juggledad Apr 18, 2010 06:51 PM

need more info -
what plugin?
what versions of Atahualpa and wp?
any error messages?
where did you get the code from?
have you checked with the plugin author?

Faffe May 10, 2010 03:07 AM

I have a problem with getting AddThis to display correctly in the footer (wp 2.9.2, Atahualpa 3.4.6).

As previously stated on the forum, when using the php snippet, the div tag makes it start on a new line. When I try the inserting the code as a span instead, instead of staying in the footer box, the AddThis icons form a tall column extending down from the footer.

It would be great to have a %addthis% tag working like the %sociable% tag does. Maybe it would be possible to make the links bookmark the individual post, instead of the displayed page (on multi-post pages)?

juggledad May 10, 2010 05:16 AM

are we talking 'page' footer or 'post' footer?

Faffe May 11, 2010 05:55 AM

Post footers. Otherwise the post tagging would be tricky :-)

juggledad May 11, 2010 06:53 AM

where did you get the php snippet from? I'm not seeing it in the addthis documentation. When I install the plugin and activate it, I get the share code at teh end of each post.

this is the 'AddThis Social Bookmarking Widget' ver 1.5.4 plugin correct?

Faffe May 12, 2010 03:50 AM

Yeah, though I'm using 1.6.3. I've tried using the Wordpress snippets from the AddThis button selector, but I get all sorts of strange behavior. The "toolbox" buttons don't show up, and the popup menu doesn't work, which most probably means the js isn't loading. Will next try some web developer toolbar to see what's going on if someone can't point me in the right direction.

What I've succeded with is displaying everything to the right in the footer by using <span style="float:right"> instead of </div>.

I'm still kind of far from my goal: making it work like the %sociable% tag, with the added benefit of AddThis analytics for tracking clicks. Even the addthis links I get to work are still only linking to the multi-post page, not the individual post.

juggledad May 12, 2010 06:32 AM

I just added that code (using version 1.6.3 of the plugin) at ATO->Style & edit CENTER COLUMN->The LOOP directly after the line
HTML Code:

<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
and it works fine. It shows up after the footer line on a line of it's own, the pop-up seems to work fine.

Have you tried it there?

Faffe May 12, 2010 08:12 AM

Thanks for the help, it pointed me in the right direction. I've also had help from this thread.

The problem was that I hadn't removed the escape characters when I added the js to HTML Inserts: Body Top. Added this:

Code:

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=my-addthis-username"></script>
And the working code for the footer is:

Code:

<!-- AddThis Button BEGIN -->
<?php echo '<span class="addthis_toolbox addthis_default_style" style="display:inline; float:right;" addthis:url="'.urlencode(get_permalink()).'" addthis:title="'.urlencode(get_the_title($id)).'">
<a class="addthis_button_facebook_like"</a>
<a class="addthis_button_favorites"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_print"></a>
<a class="addthis_button_facebook"></a>
<a class="addthis_button_google"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_live"></a>
<span class="addthis_separator">|</span>
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=my-addthis-username" class="addthis_button_expanded">More</a>
</span>'; ?>
<!-- AddThis Button END -->

I'm not even using the plugin at this point.

But now I've decided to move it to the kicker, so it's immediately visible. The only problem now is that it displays over the "sticky" icon... well there ought to be a way to handle that as well. The current look is on the Djurby homepage.


All times are GMT -6. The time now is 02:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.