The Secret to Modifying, Debugging Your Blog and other Technical Issues

The Secret to Modifying, Debugging Your Blog and other Technical Issues

I get a lot of questions about how I did this and that, especially when it comes to template tweaking and other technical things. So I thought I would let you all in on a little secret. When you are trying something new, don’t reinvent the wheel.

I started my computing career as a programmer back in the days when there was no such thing as a desktop, and computers filled up entire rooms (i.e. mainframes). Believe me when I say that I was not a naturally gifted programmer and I found it very difficult at first, until I learned the secret.

Programming is much like writing. Everyone has been influenced by someone else one way or another, and you start with writing the easy stuff and working your way up. (The blogosphere is no exception, or should I say the worst offender where so many bloggers are reiterating what someone else has already said. But I digress.)

The point that I’m trying to make is in the case of there are literally thousands of theme/templates available for you to choose from. So my advice is — do NOT try to create your own theme from scratch. Find a theme that you can work with and has features that you are looking for, and then modify it.

Learn to Step Backwards 

If you don’t know how to change something or how it works, then deconstruct the template. OR in other words, reverse-engineer it. Use that handy ctrl-f (find command) in your browser and search for the you are looking for. See how they did it. Chances are you will be able to figure out how to modify it according to your own needs.

Baby Steps, Baby

If you should get into trouble – backtrack. What I mean by that is take things a step at-a-time. Try something, then test it. Try something else, then test it again. Little baby steps, and save your changes that worked onto your desktop as a text file.

If it works then move on to the next step, but don’t make big sweeping changes all at once. So if you should find yourself in trouble (and you will), then it’s simply a matter of reversing that last change you made (i.e. pasting back that last copy you saved). That way you won’t lose all of the progress you’ve made so far.

The same goes for your . Just today I was able to fix my “Top Commenters. The reason it wasn’t working properly was because it was trying to make an ordered list. Well, for some reason that wasn’t compatible with my template, so I just removed the < li > tag from the and oilla. It works now! I also think it looks better this way and takes up less space in my sidebar. Bonus! 

It’s really that easy! That’s how I do it and I’m by no means a programming guru. There are much more gifted coders out there than me.

Here’s another example. Just recently a reader asked me how to modify the part of the comments section where it invites your readers to leave a comment. In my case it says “Leave a Reply“. Logically, that part of the should reside in the theme comments file. A simple search for “Leave a Reply” came up with this:

if (’open’ == $post->comment_status) : ?>
  <h3 id=”respond”>Leave a Reply</h3>

So all you have to do is change the “Leave a Reply” part. Easy peasy!

Don’t Rely Too Much on  

One of the benefits of using  is there are tons of that can do the work for you. BUT heed this warning — if you add too many it can slow down your blog, especially the ones that filter your database.

So it is to your benefit to become familiar with your theme/template and learn how to hard- your modifications rather than just relying on to do it for you. The more familiar you become with your the easier it will be to change it. The more you can change it, the more power you will have over your destiny.

After all, isn’t that the reason why you chose in the first place? So don’t be afraid to learn and stretch yourself. As long as you make regular backups of your you can always revert it back again.

In my case the transition to is almost complete. There’s always little here and there that pop-up, but all in all it’s about 90% done. Of course, I still have to point my internal links back to this blog, but I think I have a fix for that and I will make an attempt at it sometime this week.

Ok, now here is your chance to request a post. Just tell me what you would like me to write about, and if I should decide to take your challenge I will give you an honourable mention with a link to your blog.

You can’t beat that. You win two ways — you get your answer and a link to boot. Cool.

I’m waiting … tick, tock…

with your friends if this article has helped your blogging experience


Share this Don't Miss Another Blog Tip! Subscribe to the Newsfeed Today Blog Bloke Newsfeed
While you're here feel free ask me a question or if there is another blog tip you want me to write about. Don't forget to read the comments policy and thanks for reading Blog Bloke. Cheers!

23 Blokesters have responded to “The Secret to Modifying, Debugging Your Blog and other Technical Issues”

  1. MyAvatars 0.2

    Good explanation, BB. I might just reiterate the part about making changes in small increments. Despite past experience that tells me otherwise, I tend to get over confident and make big changes. Almost every time, that leads to problems.

    The other part of that is to ALWAYS back up anything that you’re getting ready to make changes to. Trust me when I say that if you don’t you’ll be sorry.

  2. MyAvatars 0.2

    Been there! Done that! ;-)

  3. MyAvatars 0.2

    Thanks for this post, Blog Bloke! After making a transition from Blogger to Wordpress, I can really empathize with your hints here. Small baby steps, that’s so right when tweaking your template!

    Glad to see you’ve found a way to change all those backlinks now :)

  4. MyAvatars 0.2

    I have been messing around with a few templates on some of my WordPress blogs and it’s a real learning experience.

    I worked on a blog and had it doing and viewing just the way I wanted it but I had not even looked at it in Internet Explorer as I use FireFox almost exclusively. What a huge mess and I mean huge, all the fonts were huge and out of place. That put me into a talespin for a few days fixing that mess. :)

    So it’s good advice ‘not to forget’ using more than one browser to view your work results.

    One of the first things I modify when I have a new template is the ‘Home’ link. I immediately change it to a keyword phrase such as ‘Make Money Online Home’.

    Thanks for the great post. It made me think of more things I want to do and learn about templates because eventually it would be fun to create one from scratch.

  5. MyAvatars 0.2

    Amanda, when I wrote that I couldn’t help but think of the movie “What About Bob” with Bill Murray and Richard Dreyfuss.

  6. MyAvatars 0.2

    That’s a good point and something I forget myself James. Just when I think I got it right, days later I happen to look at it in another browser and it’s embarrassing. What a mess, and so it’s back to the drawing board again.

    I guess I’d better fire up that other browser while I think of it…

  7. MyAvatars 0.2

    Bloke! I found out where to change the word “comments” that appears at the bottom of my posts, following the number of readers who left a comment.

    I viewed the page source information and saw right where the code needed to be changed. Actually I found other information that surrounded the word “comments”, so when I poked around my other php files, I could identify which one needed changing.

    Turns out it wasn’t comments.php that held the code. It was index.php.

    Kathy’s a happy camper! So this article is true. Backup your file before working on it. Make small changes. Test. Undo if you need to. And there’ll be no crying.

  8. MyAvatars 0.2

    James and Lee both make very good observations especially regarding cross browser compatibility. I only ever fire up IE these days just to see how something looks. I can’t remember the last time I actively used IE to browse.

    I’ve got tons of WP themes on my computer. The vast majority of them I’ll never use but I’ve kept them because the author has done one thing in the theme that I really like. It might be the way they format their comments. It could be a dynamic navigation system. There’s something in there which I might consider using in later themes.

    As you suggest, BB. Why reinvent the wheel?

  9. MyAvatars 0.2

    That’s great Kathy. Every theme of course will be designed differently. In mine it’s in the comments file. That’s why it’s very difficult for someone else to offer help without actually seeing your code. Sometimes it can take a little snooping around amongst the various theme files to find what you’re looking for, and that handy ctrl-f key can be your best friend.

  10. MyAvatars 0.2

    Hi Mike. I’m starting to do the same thing. There will always be design features in other themes that you might like, and you can easily deconstruct the code and incorporate the various parts into your own theme. I’m sure theme designers do it all the time.

  11. MyAvatars 0.2

    Thanks for the helpful hints,

    If I mess with the code, I copy and paste the unchanged code to notepad. Just in case I mess up!

    Speaking of backing up wordpress, may I request a post of the Blog Bloke’s way of backing up database and files. I did a Dbase and core back up but still don’t know if what I did was right.

  12. MyAvatars 0.2

    Great advice as always but having to be careful about the amount of plugins is something I will find hard to do. I have progressed from being a Blogger widget junkie to Wordpress plugin junkie - I can’t resist trying things out.

  13. MyAvatars 0.2

    Ditto. Now if only I could get myself follow my own advice ;-)

    Sue, you haven’t yet responded to my offer to write for Blog Bloke dot com.

  14. MyAvatars 0.2

    Hello,

    What can I do to make this 100% width with 1024×768 screen?

    Thx

    gofree’s last blog post..Flash Banner Creator

    MyAvatars 0.2

    I took a look at your blog and it fits 1024×768 perfectly. I see your Custom Domain is working fine as well.

    Blog Bloke reply on May 7th, 2008 1:26 pm:

  15. MyAvatars 0.2

    Wow, I didn’t expect that quick respond!!! Yes, now the domain works, but still I can see bar; and if you have a closer look at the button that I put mouse over, it is wrong.

    Here is the image: img390.imageshack.us/img390/1275/clipboardimage1qd6.jpg

    Thx

    gofree’s last blog post..Dezzain Free WordPress Theme - Box Tube

    MyAvatars 0.2

    The image you refer to didn’t work for me. So it looks like it is an issue with HTML and your image host. But at least your URL is working now. One step at a time ;-)

    Blog Bloke reply on May 8th, 2008 11:38 am:

  16. MyAvatars 0.2

    nice job.

    Benbego Rizki’s last blog post..Kwikcontent VS Adsense Money Maker

    MyAvatars 0.2

    Thanks Benbego Rizki

    Blog Bloke reply on June 9th, 2008 10:17 am:

  17. MyAvatars 0.2

    I am new here and looking to have a great time and learning experience
    within your community.

    MyAvatars 0.2

    Welcome fwboodol

    Blog Bloke reply on June 9th, 2008 10:16 am:

  18. […] first post that caught my attention this morning was from BlogBloke’s Blog. BB’s post about the secret of modifying or debugging your blog template brought to mind my […]

  19. Here is a list of 100 sites using the CommentLuv plugin. Post a comment on these blogs and you get a follow link to your latest blog post.

    If you want to try it out just post a comment to this post!

    http://www.blogbloke.com/the-secret-to-debugging-your-blog-and-other-assorted-technical-issues/

What do you think? Leave a Comment and join the conversation...

Subscribe to RSS comments on this post | TrackBack URL

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> Click on the » tab above for more

I love comments and I'm looking forward to reading yours. Thanks for dropping by and don't forget to subscribe to the newsfeed Subscribe to my Newsfeed.

Warning: Missing argument 1 for __(), called in /home/bloke/public_html/wp-content/plugins/podpress/podpress.php on line 401 and defined in /home/bloke/public_html/wp-includes/l10n.php on line 30