Archive for the ‘Pimp my Blog’ Category

How do I change the background color of my blog’s body?

Monday, April 7th, 2008

I get asked a lot how to change the background color of the blog’s body.  So often in fact, that in the next minor release I’m going to feature this CSS rule much more prominently in the simple edits area and in the tutorials.  But for now, I’ll address it here and point people to this post.

If you want to change the background of the body portion of your blog, say you want to turn it black, like Frank’s blog, open up your Theme Editor under the “Design” tab (”Presentation in WP 2.3.3 and earlier) of your WP Admin area. Click to edit the “Stylesheet (style.css).”  

Scroll down to line 153 where you will see this:

#wrapper {
 width: 980px;
 margin: 0 auto;
 background-color: #FFF;
}

Just change “#FFF;” to the six-digit color code of your choice, and you’re all set.

Furthermore, if you wanted to change just the background of the header area next to the logo to be something unique and different by itself, scroll down just a bit further and look for this bit of code:

#header {
 height: 108px;
}

Between the two brackets add a line to specify a background color of your choice, like so:

#header {
 height: 108px;
  background: #000000;
}

Click to update your changes and you should be golden.

Update your ping services

Friday, April 4th, 2008

Here’s a quick tip to optimize your blog a bit: update your list of ping services. Pinging is kind of like announcing to the web world whenever you have a new post or new content, and helps get your posts and pages indexed by search engines faster.

To update your ping services go to “Settings” (”Options” in WP 2.3.3 and earlier) –> “Writing” and scroll down to the bottom of the page. Then paste in the following (fairly exhaustive) list of pinging services:

http://rpc.pingomatic.com/
http://api.feedster.com/ping
http://api.moreover.com/ping
http://api.my.yahoo.com/rss/ping
http://blogsearch.google.com/ping/RPC2
http://ping.amagle.com/
http://ping.bitacoras.com
http://ping.blo.gs/
http://ping.feedburner.com
http://ping.rootblog.com/rpc.php
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://rcs.datashed.net/RPC2/
http://rpc.blogbuzzmachine.com/RPC2
http://rpc.blogrolling.com/pinger/
http://rpc.icerocket.com:10080/
http://rpc.newsgator.com/
http://rpc.technorati.com/rpc/ping
http://rpc.weblogs.com/RPC2
http://topicexchange.com/RPC2
http://www.blogdigger.com/RPC2
http://www.blogoole.com/ping/
http://www.blogoon.net/ping/
http://www.blogsnow.com/ping
http://www.blogstreet.com/xrbin/xmlrpc.cgi
http://www.lasermemory.com/lsrpc/
http://www.newsisfree.com/RPCCloud
http://www.popdex.com/addsite.php
http://www.snipsnap.org/RPC2
http://www.wasalive.com/ping/
http://www.weblogues.com/RPC/

Click to update changes, and you’re all set. Now your voice got a little bit louder in the blogosphere.

My #1 all-time ProPhoto WordPress tip

Wednesday, April 2nd, 2008

Without a doubt, I have a number one all time, inter-galactic champion, most important tip ever for ProPhoto blog users:

THOU SHALT BE COMPLETELY OBSESSED WITH PAGE LOAD SPEED ABOVE ALL ELSE.

What do I mean by that? Well, the great strength of the ProPhoto theme is also it’s tragic flaw: huge pictures. Huge pictures make our blogs awesome. They can also make them very slow to load. Our friends and fans and clients will not put up with sites that take forever to load. Remember, we as photographers tend to have really good high-speed internet connections because of our unique needs (4GB uploads to Pictage ring a bell for anyone?), but most people are not so lucky. The last thing you want to do is frustrate your users because your site takes forever to load.

What to do? I’m glad you asked. Here are 5 ways to dramatically improve your page load speeds:

  1. Reduce the number of posts that appear on each page. This is the most important single thing you can do to reduce page load times. I heartily recommend keeping your posts per page somewhere between 4 and 6. If you tend to post a lot of pictures per post, I’d go for 4 posts. If you only post a few pictures per post, 6 might be fine. This can be changed by going to “Options” –> “Reading” (or “Settings” –> “Reading” if you’re on WP 2.5 already) and putting a number other than the default 10 in where it says: “Blog Posts: Show at most: _____ posts”
  2. Optimize, Optimize, Optimize. Most of you post images that are 900px by 600px, since this is the size the blog was created for. (Some of you post even bigger pictures than that–Mark Ridout does.) These pictures should be about 100k - 200k in file size, depending on the complexity of the image. If your pictures are consistently bigger than that, you should probably tweak your export settings out of Photoshop or Lightroom. I usually use Photoshop’s “Save for Web and Devices” export dialog and set it to JPG –> Quality 80. (more on this…)
  3. Optimize your logo, biopic, and masthead (flash fader) images as well. See if you can shrink the file sizes on all these images at all without losing too much quality, to speed up page load.
  4. Background image beware! A lot of you have taken advantage of ProPhoto’s ability for you to upload your own background image. This image, even more so then your other images, should be extremely lightweight. I recommend keeping it below 100k (below 50k is better) if possible. Small, repeating GIF files work great for this. A few of you have tried to use background images that were several megabytes in size. That’s way to big.
  5. Check back for a post coming soon about a plugin you can (and should) install that can shave up to a second or two off every single page load. This deserves its whole own post, so I will write it up later.

I honestly think having a speedy blog makes it much more user friendly, and much more likely that people will keep coming back day after day to see your pictures. So, be a Nazi about page load speeds! In fact, next time your somewhere with slow internet (dial-up even), check your blog to get a good read on what lots of people might experience with your site.

Related Post: What size images should I post? How do I resize & optimize them?

Disabling right-click save on your blog images

Monday, March 31st, 2008

One thing I get asked about fairly frequently is how to disable people from right-clicking and saving images from our blogs. After all, we post pretty big pictures that we’re hoping to get paid for, rather than having uncle Bob steal them off of our website and make a bunch of prints at WalMart.

The good news is, it is pretty easy to disable right-clicking for all your images in ProPhoto (or any other WordPress Theme for that matter).

To do it, just do the following: In your WP Admin panel, go to “Design” (called “Presentation” in WP 2.3.3 and earlier) –> “Theme Editor.” Then click on the file “Header” (or, header.php). Then look for this line of code:

<body class="<?php sandbox_body_class() ?>">

Delete that line and replace it with this line:

<body class="<?php sandbox_body_class() ?>" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">

Click to save your changes, and that should do it. This will disable people from right-clicking and saving any images, and dragging images off of your blog onto their computer. Unfortunatley, it will not prevent them from taking screen-captures of your images–but most people don’t know how to do this. This technique will probably stop 90% of the theft from your blogs.

Was this helpful? Let me know by commenting!