Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Put AddThis in Kicker or Footer


  #1  
Old Apr 18, 2010, 11:54 AM
nick51
 
54 posts · Oct 2009
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
  #2  
Old Apr 18, 2010, 07:51 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 10, 2010, 04:07 AM
Faffe
 
22 posts · May 2010
Sweden
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)?
  #4  
Old May 10, 2010, 06:16 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are we talking 'page' footer or 'post' footer?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 11, 2010, 06:55 AM
Faffe
 
22 posts · May 2010
Sweden
Post footers. Otherwise the post tagging would be tricky :-)
  #6  
Old May 11, 2010, 07:53 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; May 12, 2010 at 07:29 AM.
  #7  
Old May 12, 2010, 04:50 AM
Faffe
 
22 posts · May 2010
Sweden
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.
  #8  
Old May 12, 2010, 07:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old May 12, 2010, 09:12 AM
Faffe
 
22 posts · May 2010
Sweden
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.

Last edited by Faffe; May 12, 2010 at 10:10 AM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I put a %bar2 in the footer juandrah Post-Kicker, -Byline & -Footer 2 Feb 2, 2010 08:01 PM
Put Links in Post Footer haroldandzooey Post-Kicker, -Byline & -Footer 1 Dec 7, 2009 10:54 PM
PHP goodies for kicker/footer? paulae Post-Kicker, -Byline & -Footer 5 Oct 14, 2009 09:13 AM
AddThis widget location. pilsen1 Sidebars & Widgets 6 Oct 6, 2009 03:08 PM
[SOLVED] AddThis in post footers ahaze Post-Kicker, -Byline & -Footer 4 Sep 9, 2009 01:56 PM


All times are GMT -6. The time now is 12:35 AM.


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