Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Notices

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming

Reply
 
Thread Tools Display Modes
Old 05-30-2011, 08:51 PM   #1 (permalink)
Family Member
 
Join Date: Dec 2008
Location: Barleylands, United Kingdom
Posts: 1,257
Agota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud of
Default How to automatically add text below each blogpost in Wordpress?

Hey, guys!

I'd like to add a a donation button with some text after each entry in my blog (Steve has the same thing). How do I do that?

Thank you!

Agota
Agota is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 09:01 PM   #2 (permalink)
Master
 
Savage's Avatar
 
Join Date: Oct 2006
Location: Las Vegas, NV
Posts: 5,988
Savage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppable
Default

I did it by editing the WordPress page templates. Took just a few minutes.
__________________
Steve Pavlina
www.StevePavlina.com

Join me on: Twitter | Google+
Savage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 09:23 PM   #3 (permalink)
Banned
 
Join Date: Apr 2009
Posts: 12,690
James81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond repute
Default

From your dashboard:

Scroll down to Appearance. Under Appearance is a link to the Editor. Click on that.

On the right, you'll see lots of options for which area of your page you want to edit the code to. If you want it under your posts, click on the "Single Post" option and notice that the code in your editor box changed.

Here's where you might have to play with it for a bit to get it just right. I would suggest looking for code (near the bottom) that says this:

Code:
<?php comments_template(); ?>
And pasting your code for the donate button right above that. To generate code for the donate button, go to your paypal account and login.

At the top click on "Merchant Services". There will be a link under "create buttons" for generating Donate code. (Titled "donate"...durrr, right? ) Click on that.

Fill in the fields with whatever you want/is relevant. Click on "Create Button". Voila! You have code. Copy/past that code above the code I posted above in your wordpress single post text editor.

Now, it may not orient it the way you want it. Some things to consider when pasting your code:

1. This will only put the donate link into your individual posts. That is, you will not see your donate link on your blog homepage, but only if people click on the link to the post they are reading.

2. If you want to spruce it up a bit, consider the center, bold, and italics html codes.

3. Also note that you don't have to do anything special. Just type your text wherever you are pasting the donate code and it'll show up when you update the theme editor.

4. Consider using a widget in your sidebar to put your donate button in. This is the quickest and easiest way to get a donate button on every page of your website. (If you need help with that, let me know.)

5. You might also consider pasting your paypal donate button code into any of the following pages: Main Index Template, Page Template, or Footer. Again, you might have to play with where you actually paste the code. I'd advise just pasting it, updating, and then checking to see where it lands. You can look in the code itself for clues and guesses on where the code is going to fall on the page. I usually skim the code looking for words that denote what the code is doing...for example the one I posted above tells me that that is where the comments are. Since I know that the comments are at the bottom of the post, that's a good indicator that my donate button will probably land somewhere around the bottom too.

Last edited by James81; 05-30-2011 at 09:28 PM.
James81 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 11:27 PM   #4 (permalink)
Family Member
 
Join Date: Dec 2008
Location: Barleylands, United Kingdom
Posts: 1,257
Agota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud of
Default

James, you should really make some product on things like that for WordPress newbies like me! I was very puzzled when I googled this and saw all those things with editing code when I didn't even know where to find that code, but your explanation was really good and now I have my donation button under every blog post! Hooray! Thank you, James!

Steve, you were right, editing the template took only few minutes. Finding out how to do that was the tricky part. I really was so puzzled that I thought maybe I should just drop the idea
Agota is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 11:29 PM   #5 (permalink)
Master
 
Savage's Avatar
 
Join Date: Oct 2006
Location: Las Vegas, NV
Posts: 5,988
Savage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppable
Default

Quote:
Originally Posted by Agota View Post
James, you should really make some product on things like that for WordPress newbies like me! I was very puzzled when I googled this and saw all those things with editing code when I didn't even know where to find that code, but your explanation was really good and now I have my donation button under every blog post! Hooray! Thank you, James!

Steve, you were right, editing the template took only few minutes. Finding out how to do that was the tricky part. I really was so puzzled that I thought maybe I should just drop the idea
I figured I'd give you the short version and then expand if you clicked on the + symbol.
__________________
Steve Pavlina
www.StevePavlina.com

Join me on: Twitter | Google+
Savage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 11:38 PM   #6 (permalink)
Family Member
 
Join Date: Dec 2008
Location: Barleylands, United Kingdom
Posts: 1,257
Agota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud of
Default

Oh, yeah! Rep bars! I think I finally figured out how to use it yesterday (when somebody else asked, since I didn't want to ask because I thought that's embarrassing. that's so PD) . I know, I'm like Acid Burn from "Hackers", right?
Agota is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-30-2011, 11:59 PM   #7 (permalink)
Banned
 
Join Date: Apr 2009
Posts: 12,690
James81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond reputeJames81 has a reputation beyond repute
Default

Quote:
Originally Posted by Agota View Post
James, you should really make some product on things like that for WordPress newbies like me! I was very puzzled when I googled this and saw all those things with editing code when I didn't even know where to find that code, but your explanation was really good and now I have my donation button under every blog post! Hooray! Thank you, James!

Steve, you were right, editing the template took only few minutes. Finding out how to do that was the tricky part. I really was so puzzled that I thought maybe I should just drop the idea
It's in the works, momma.
James81 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2011, 02:34 AM   #8 (permalink)
Master
 
Savage's Avatar
 
Join Date: Oct 2006
Location: Las Vegas, NV
Posts: 5,988
Savage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppableSavage is absolutely unstoppable
Default

Quote:
Originally Posted by Agota View Post
Oh, yeah! Rep bars! I think I finally figured out how to use it yesterday (when somebody else asked, since I didn't want to ask because I thought that's embarrassing. that's so PD) . I know, I'm like Acid Burn from "Hackers", right?
Actually I wasn't referring to rep in case that's what you meant. I was just speaking geek.
__________________
Steve Pavlina
www.StevePavlina.com

Join me on: Twitter | Google+
Savage is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2011, 05:07 AM   #9 (permalink)
Banned
 
Join Date: Oct 2008
Location: Mexico City
Posts: 11,168
ssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributorssandra is an amazing contributor
Default

Whenever I'm messing around with my code thingies on my website, i always make sure that I copy paste all workable code in an empty word page.

Sometimes, something goes wrong. And it really REALLY REALLY isn't fun if you have to uninstall and reinstall the wordpress theme and have to re do all the changes that you made before... IF you can remember them all.


Trust me... copy past anything that works, better be safe then sorry!!
ssandra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-31-2011, 10:57 AM   #10 (permalink)
Family Member
 
Join Date: Dec 2008
Location: Barleylands, United Kingdom
Posts: 1,257
Agota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud ofAgota has much to be proud of
Default

Quote:
Originally Posted by Savage View Post
Actually I wasn't referring to rep in case that's what you meant. I was just speaking geek.
Apparently, I'm not fluent in geek

Quote:
Originally Posted by ssandra View Post
Whenever I'm messing around with my code thingies on my website, i always make sure that I copy paste all workable code in an empty word page.
Yeah, I did that yesterday
Agota is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrapping text around pictures in wordpress blog Explinfin Business & Financial 4 07-30-2010 12:04 AM
How to Automatically Win Friends In College ken nubo Social & Relationships 3 07-26-2009 07:28 PM
How to get 1000 views of your blogpost in the first day of it being out? dwixi Business & Financial 3 01-26-2009 07:05 PM
Redoing older blogpost, good or bad idea? EnduranceNinja Business & Financial 5 08-06-2008 09:05 PM


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2010 by Pavlina LLC