[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> |
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!!
|
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"> |
That worked perfectly, Flynn, many thanks!
|
Thank you FLYNN... it works!
|
All times are GMT -6. The time now is 09:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.