Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-04-07, 03:50 PM   #1
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Quote:
The only thing I don't like about addthis is that you have little control over where and how it shows up.
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
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2008-04-07, 05:36 PM   #2
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:05 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc