I have received a few comments/emails asking how I added an RSS link at the bottom of all my entires. This post is for all of you who are interested in doing the same thing.
The reason I decided to include a “Subscribe to Pro Money Blog Link” was, obviously, to encourage anyone reading one of my posts to subscribe to my blog. I figured the subscription link located at the top right of this blog wasn’t sufficient. Since people would read an entry from top to bottom, it makes sense to have a subscription link available when someone completes an entry.
As sort of a disclaimer, I am by no means a coder. I just copy and paste code, save, and see the result. If I don’t like it, I modify the code until it fits my needs. After some time, I’ve built pretty good experience in understanding what does what in coding my blog. With that said, I’m sure you coders out there can figure out a better way to do this. In any case, this is how I added a RSS subscription link for my WordPress blog.
Before you start, make sure you backup your WordPress files. I can’t be held accountable for breaking your blog (eek!). Use at your own risk folks… at your own risk! haha
1. Login to the administration panel of your blog (www.yourwebsite.com/wp-admin) and find the Theme Editor tab under your Presentation tab.
2. In your Stylesheet file (style.css) add the following code, remembering to input your appropriate domain name.
.subscribe_to_yourwebsite h4 { font-size: 11px; font-weight: none; background:url(/images/subscribe-to-promoneyblog.png) no-repeat left center; padding: 0px 0px 0px 20px; margin: 0px 0px 0px 0px;}
This url: “/images/subscribe-to-promoneyblog.png” is the location of my little RSS image. It is 16 pixels by 16 pixels. You can just download my image and use it for your website. Just remember to input the right location. Or, you can copy and paste the URL for my image and just use that. You may also change the font information (size, weight, etc.) to fit the style of your blog. Once you’re done, press Update File.
3. Now click on your Main Index Template file (index.php). Locate the line which contains the following code (or something similar):
<?php the_content(”);?>
This little thing is where the content of your blog is posted. Find where this area of code ends. Mine ends with the following:
<? endif; ?>
Directly after this, paste the following:
<div class=”subscribe_to_promoneyblog”>
<h4><a href=”http://www.yourwebsite.com/feed“>Subscribe to Your Website</a></h4>
</div>
The url: “http://www.yourwebsite.com/feed” should point to your feed. Press Update File. Thats it! This should place the “Subscribe to (your website)” link at the end of your entries on the index page. Woo hoo! hopefully it works =).
4. You can repeat step 3 for your Single Post file (single.php), which will add the link when a single post is viewed, and your Page file (page.php) if you want people to be able to subscribe to through your pages.
All done! Not too bad right? Man, I know someone out there is like: “Damn, Dennis is a coding idiot.” haha. I gave a disclaimer damnit! =)
If you have problems or need additional help, feel free to contact me or leave a comment here. I’ll muster up some sort of technical support.
5 Responses
chris.pund
July 26th, 2007 at 8:11 am
1Great tip! I’ll have to take advantage of this for sure.
Leonid Shalimov
July 26th, 2007 at 11:09 am
2Woo, great tutorial. Well written and nicely layed out. Maybe I’ll add this to do my huge ‘to-do’ list with my WordPress upgrades.
mahdi yusuf
July 28th, 2007 at 1:50 pm
3it may look nicely posted, i had some trouble executing it! aww well thanks for the info! :D
How to add an RSS link at the bottom of your Wordpress entries | Dorm Room Biz
August 2nd, 2007 at 1:04 pm
4[...] get the instructions at his site and start getting more people to subscribe to your feed! [?] Share [...]
Kelly King Anderson
August 4th, 2007 at 7:11 am
5Nice blog, just discovered you today! Where have I been?? ;) Thanks for the instruction on this important plugin!
Make a Wish, Make it Happen,
Kelly King Anderson
Start Up Princess
RSS feed for comments on this post · TrackBack URI
Leave a reply
Advertisements
Sponsored Links
My Projects
Categories
Blogs
Community