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)
-   -   [SOLVED] AddThis in post footers (http://forum.bytesforall.com/showthread.php?t=2977)

ahaze Aug 14, 2009 11:53 AM

[SOLVED] AddThis in post footers
 
Hello! I'm new to WordPress and CSS, but this theme so far has been super-easy to modify - though I do have a couple small issues!

I'm using AddThis on my site: http://www.safelist.com/blog/

I want the AddThis button to appear in the post footers, on the far right on the same line as the date, comments, etc - but for some reason it wraps to the next line. Below is the code I had put into the footers, that caused it to wrap. If anyone has any ideas I'd love to hear 'em! Thanks in advance.

%date('m/d/y, g:i a')% | %comments('Leave a comment', 'One comment', '% comments', 'Comments are closed')% %edit(' | ', 'Edit this post', '')% <script type="text/javascript"> var addthis_pub = 'safelist'; var addthis_language = 'en';var addthis_options = 'email, favorites, facebook, twitter, delicious, stumbleupon, myspace, google, digg, reddit, more';</script> <div class="addthis_container"><a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, '', 'http%3A%2F%2Fwww.safelist.com%2Fblog%2F2009%2F08% 2F13%2Fverified_id%2F', '')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-addthis-en.gif" width="125" height="16" border="0" alt="Bookmark and Share"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>

ahaze Aug 14, 2009 03:04 PM

Okay, I've determined (with juggledad's help!) that putting the AddThis javascript code in the post footers was causing a layout issue - that being the case, how do I go about putting AddThis where I want it - on the same line as the date and comments? Thanks!!

Flynn Aug 16, 2009 04:14 AM

Replace <div class="addthis_container"> with <span style="display:inline;float:right" class="addthis_container"> and </div> with </span>

More styles may be required for the <span ...> such as height and width.
<span style="display:inline;float:right;width:XXpx;heigh t:XXpx" class="addthis_container">

ahaze Aug 17, 2009 10:31 AM

That worked perfectly, Flynn, many thanks!

brotherjoy Sep 9, 2009 12:56 PM

Thank you FLYNN... it works!


All times are GMT -6. The time now is 08:24 AM.

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