| | |||||||
| Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Family Member Join Date: Dec 2008 Location: Barleylands, United Kingdom
Posts: 1,257
|
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 |
| | |
| | #3 (permalink) |
| Banned Join Date: Apr 2009
Posts: 12,690
|
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(); ?> At the top click on "Merchant Services". There will be a link under "create buttons" for generating Donate code. (Titled "donate"...durrr, right? 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. |
| | |
| | #4 (permalink) |
| Family Member Join Date: Dec 2008 Location: Barleylands, United Kingdom
Posts: 1,257
|
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 |
| | |
| | #5 (permalink) | |
| Master Join Date: Oct 2006 Location: Las Vegas, NV
Posts: 5,988
| Quote:
| |
| | |
| | #6 (permalink) |
| Family Member Join Date: Dec 2008 Location: Barleylands, United Kingdom
Posts: 1,257
|
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? |
| | |
| | #7 (permalink) | |
| Banned Join Date: Apr 2009
Posts: 12,690
| Quote:
| |
| | |
| | #8 (permalink) | |
| Master Join Date: Oct 2006 Location: Las Vegas, NV
Posts: 5,988
| Quote:
| |
| | |
| | #9 (permalink) |
| Banned Join Date: Oct 2008 Location: Mexico City
Posts: 11,168
|
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!! |
| | |
| | #10 (permalink) | ||
| Family Member Join Date: Dec 2008 Location: Barleylands, United Kingdom
Posts: 1,257
| Quote:
Quote:
| ||
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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.




