View Single Post
Old 2008-04-07, 05:36 PM   #11
ronnie
Wheither you think you can or you think you can't, Your right.
 
Join Date: Jun 2004
Location: midwest
Posts: 2,274
Send a message via ICQ to ronnie
Quote:
Originally Posted by Simon View Post
Ronnie ... if you're comfortable editing some template files, you can gain some control over the positioning of the AddThis graphic.

What you want to do is wind up with it enclosed in a div tag so you can apply a CSS class or ID to it. Once you have the AddThis code wrapped in a div, you can use CSS positioning, margin and padding to get it where you want.

You'd make the changes in your theme's index.php file. You'll have to get the opening div tag to appear right after the post content. Then the closing div tag is pretty easy. The other option is to edit the widget code in the AddThis plugin file to add the div code there.

HTH
I have no problem editing the files, I do it all the time. Actually seems 99% of theme's are not SEO'ed for one thing, along with a number of other things I usually change.

I finally dove in to fixing it, probably because of this thread. Anyways, you can't edit the theme's index, the changes need to be done in the plug-in file itself, as you mentioned. Your right the plug-in adds the code right after the post "content", so the div needs to be added either in the wordpress code itself or in the plug-in code, the plug-in code is easier..

I can post the change if any one wants it.

To bad addthis doesn't do like some other plug-ins, were they add the div css into the plug-in code for you, would be nice. I know the related plug-in I use does that.
ronnie is offline   Reply With Quote